atom/language-java

Java variable-highlight

Closed this issue · 4 comments

Original from @JoeyRxy in microsoft/vscode#79108

int x = 0, y = 0;

you will find the y doesn't be recognized as a variable.

When I use TM scope inspector to find what y's kind is,it tells me y is a meta.method.body.java instead of variable(but x is variable).

And then I find when you type this:

int x = 0, y = 0;
int z = x + y;

the x and y at second line isn't recognized as variable either.

Today I find more:
bugs
bugs
the array BIT has different scope in different place.

Can I modify the definition of tm scope?set y as variable too?

Feel free to open a PR to fix the issue!

We only implement variable declaration, we don't scope variables in assignments.

Relates to #178