jskinner / DefaultPackages

Old bug tracker for Sublime Text's "Default Packages", e.g. bad syntax highlighting
http://web.archive.org/web/20150524043750/https://www.sublimetext.com/forum/viewtopic.php?f=2&t=12095
26 stars 2 forks source link

Groovy Syntax bug #97

Open ghost opened 9 years ago

ghost commented 9 years ago

ST's default Groovy Syntax package does not highlight all double-quoted strings properly. moved from here: https://github.com/SublimeTextIssues/Core/issues/653

easy to reproduce:

/*
  MacOSX, ST3, b3065, registered

  if Syntax is set to Groovy, foo1 brackets don't match, foo2 & foo3 are OK
  if Syntax is set to C, everything's fine.
*/

// BUGGY
int foo1 () {
    MYFUNC (" $f) ");
}

// This works OK
int foo2 () {
    DEBUG (" $f ");
}

// This also works OK:
int foo3 () {
    _DEBUG (" $f) ")
}

Screenshot