-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 8 method references before keyword names not supported (breaks symbol matching) #140
Comments
I have a fix, but I don't seem to be able to apply it in Sublime Text in a way that it'll take notice. ST3 actually gets its Java language grammar and highlighting from the Textmate Java bundle. I was able to fix the issue there with a regex change in the In the from:
to
Which makes it ignore the The equivalent file in ST3 is: I'm pretty sure this is the fix though, it's just how to apply fixes, both to this and the TextMate bundles system that seems to be unnecessarily difficult. EDIT: TextMate Issue here: textmate/java.tmbundle#37 EDIT: Fixed for me by moving my changed Java.tmLanguage file into Packages/User where it probably always should have been! :-} And it works. |
@StrangeNoises, you can also file a pull request now to the official repository of ST's shipped packages: https://github.com/sublimehq/Packages Note the new format however. |
Yes I did just note the new format, now there is a Java.sublime-syntax instead. But I was able to make the same change in the equivalent place there, and it's working for me. Expect a PR soon (just got to check that procedure that I do it right...) |
... and done: sublimehq/Packages#89 |
@FichteFoll I believe you can close this now. |
System.out::println
seems to not be an issue, butArrayList::new
is, seemingly because "new" is also a keyword.Okay:
Broken:
Mirror from http://www.sublimetext.com/forum/viewtopic.php?f=3&t=18921
The text was updated successfully, but these errors were encountered: