Groovy-Emacs-Modes / groovy-emacs-modes

A groovy major mode, grails minor mode, and a groovy inferior mode.
84 stars 39 forks source link

Correctly highlight """foo/""" #114

Closed Wilfred closed 6 years ago

Wilfred commented 6 years ago

Functions applying string properties need to leave point at the place where they want parsing to continue from.

Previously, since we matched two characters with groovy-slashy-open-regex, we would put point after the first closing doublequote, giving """foo/"|"". This would stop us seeing the whole """ and we wouldn't consider the triple-quoted string literal to be closed.

In this circumstance, we now set the point immediately after the /.

Wilfred commented 6 years ago

Build failure looks like https://github.com/cask/cask/issues/420 so I'm merging anyway.