sublimehq / Packages

Syntax highlighting files shipped with Sublime Text and Sublime Merge
https://sublimetext.com
Other
2.95k stars 587 forks source link

[Groovy] triple quotes syntax bug #2031

Open derbeneviv opened 5 years ago

derbeneviv commented 5 years ago

Hello! in the following example, I’m creating a String using triple-doublequotes. It contains html tags, variables and some arithmetic. well, syntax goes crazy but if i put closing tags on new lines, everything becomes OK groovy

deathaxe commented 5 years ago

The issue is caused by the / operator being matched as beginning of a regexp pattern /<pattern>/<flags> .

Looks quite similar to how Perl and Ruby handle such patterns.