atom/language-java

Java tree-sitter syntax highlighting does not parse annotations correctly

Closed this issue · 1 comments

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

I will take a look later.