Skip to content
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 10 var context-sensitive keyword #1101

Closed
Anteru opened this issue Aug 31, 2019 · 1 comment
Closed

Java 10 var context-sensitive keyword #1101

Anteru opened this issue Aug 31, 2019 · 1 comment
Labels
S-major severity: major T-feature type: a new feature X-imported imported from Bitbucket

Comments

@Anteru
Copy link
Collaborator

Anteru commented Aug 31, 2019

(Original issue 1397 created by Icyene on 2017-11-27T06:28:41.387483+00:00)

Java 10 is just 4 months away from a public release, and one of the new features is the addition of a var context-sensitive keyword (JEP 286).

I suppose the ideal scenario would be highlighting it only when it is used as a variable type and not as a name, but any highlighting is better than none.

@Anteru Anteru added T-feature type: a new feature X-imported imported from Bitbucket S-major severity: major labels Aug 31, 2019
@Anteru
Copy link
Collaborator Author

Anteru commented Aug 31, 2019

(Original comment by phillipjohnson on 2018-09-07T01:11:07.519442+00:00)

If it matters, var is actually a type declaration not a reserved keyword. So var var = 1; is valid Java.

Also, Java 10 has been out for a few months so any update would be great. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-major severity: major T-feature type: a new feature X-imported imported from Bitbucket
Projects
None yet
Development

No branches or pull requests

1 participant