-
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:
![o](https://camo.githubusercontent.com/45ad85f48f15956f84fd0f23805a0ac0a0e31f90911825143c32cf9f606251cd/687474703a2f2f636164616e63652e737472616e67656e6f697365732e6f72672f7e72616368656c2f6a6176613873796e746178312e706e67)
Broken:
![b](https://camo.githubusercontent.com/3808317e43afbad32ef01cd82f4a4184e217d45a1d324e284671ba0f055ab5d5/687474703a2f2f636164616e63652e737472616e67656e6f697365732e6f72672f7e72616368656c2f6a6176613873796e746178322e706e67)
Mirror from http://www.sublimetext.com/forum/viewtopic.php?f=3&t=18921
The text was updated successfully, but these errors were encountered: