atom / language-java

Java package for Atom
Other
62 stars 58 forks source link

Java tree-sitter syntax highlighting does not parse annotations correctly #239

Closed sadikovi closed 3 years ago

sadikovi commented 3 years ago

Prerequisites

Description

Java tree-sitter highlighting does not recognise the following annotations:

class A {
  @Retries.RetryTranslated
  private void func(int arg) throws IOException {
    // ...
  }  
}

We need to fix it, here is what it looks like in Atom 1.53.0:

Screenshot 2020-11-23 at 11 23 08

Steps to Reproduce

  1. Paste the code into Atom 1.53.0
  2. Select Java language.

Expected behavior:

Syntax highlighting is similar to other annotation types.

Actual behavior:

Syntax highlighting is different.

Reproduces how often:

100%

Versions

apm  2.5.2
npm  6.14.8
node 12.4.0 x64
atom 1.53.0
python 2.7.10
git 2.17.2

Additional Information

sadikovi commented 3 years ago

I will take a look later.