atom / language-java

Java package for Atom
Other
62 stars 58 forks source link

Syntax highlighting is broken with array syntax #227

Closed Yanpas closed 4 years ago

Yanpas commented 4 years ago

Prerequisites

I'm using vscode (https://github.com/microsoft/vscode/blob/master/extensions/java/syntaxes/java.tmLanguage.json) and syntax version 2e179ceac423403eb5bf0eff26884093c3edba6f

Description

Snippet:

        for (int i = 0; i==0;){

        }
        String[] aaa = new String[] {
            String.class.toString(),
            "aaaa",
            "bbb",
        };
        for (int i = 0; i==0;){

        }

image

See also https://github.com/redhat-developer/vscode-java/issues/728

sadikovi commented 4 years ago

Cannot reproduce on the master branch. This seems to have been fixed by https://github.com/atom/language-java/pull/215, at least, this is what git tells me, thus the version of vscode for which the bug was reported was likely using a different version of language-java package.