You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax highlighting doesn't detect language component correctly if a method declaration spans over multiple lines. Here is an example (please only take note of the colors)
Expected:
Actual:
VSCode Version: 1.29
OS Version: Both Windows 10 and MacOS Mojave
Steps to Reproduce:
Declare a method with signature that's longer than line width limit
Save and wait for the formatter to reformat it to multiple lines
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered:
I can reproduce this error with the following code:
class C {
public
void foo() {}
}
void and foo are not highlighted. The TextMate scope for the declaration is
meta.class.body.java
meta.class.java
source.java
Everything is highlighted correctly when the access modifier public is removed. I think the bug is related to the member-variables pattern in the syntax definition (link) which is included in class-body.
Syntax highlighting doesn't detect language component correctly if a method declaration spans over multiple lines. Here is an example (please only take note of the colors)
Expected:
Actual:
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: