Java tree-sitter syntax highlighting does not parse annotations correctly
sadikovi opened this issue · comments
Ivan commented
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
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:
Steps to Reproduce
- Paste the code into Atom 1.53.0
- 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
Ivan commented
I will take a look later.