Closed codeman38 closed 8 years ago
Playing around with this further, it looks like this is a more generalized issue with calling methods in field initializers. The grammar is wrongly interpreting what's to the right of the equal sign as a method declaration, rather than a call.
You can see this to a less dramatic extent with:
public class SyntaxHighlightingTest2 {
private static Thing thing = ThingFactory.makeThing("This is a TEST!");
}
Closing this as duplicate since https://github.com/SublimeTextIssues/DefaultPackages/issues/172 has more details.
It has been fixed anyway.
The following Java snippet breaks Sublime Text's syntax highlighter:
Here's how Sublime Text renders that: