Java variable-highlight
Closed this issue · 4 comments
alexr00 commented
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:
the array BIT
has different scope in different place.
JoeyRxy commented
Can I modify the definition of tm scope
?set y
as variable
too?
sadikovi commented
Feel free to open a PR to fix the issue!
sadikovi commented
We only implement variable declaration, we don't scope variables in assignments.