Sublime Forum

Groovy triple quotes syntax bug

#1

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

can you guys help me with this annoying bug?

0 Likes

#2

If you could submit the bug at https://github.com/sublimehq/Packages/issues, that repository includes all of the syntax definitions that we ship with Sublime Text and where we address bugs and commit fixes.

0 Likes

#3

Inside the interpolation, the syntax sees the first slash (in aaa / aaa * 100) and is matching it with the second slash in </td>. This is (I assume) a bug. It looks like the syntax implementation is pretty simplistic — it shouldn’t be looking for a regexp right after an identifier.

0 Likes