@link highlighting broken when linking to class
Opened this issue · 1 comments
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 (I have not - but this shouldn't be relevant. Also see below)
- 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
When using the @link
doc tag to refer to a class, rather than a method (which is valid), it is not highlighted, however it is for a method.
Steps to Reproduce
- Open a Java file
- Paste in the following Javadoc comment
/**
* {@link String}
* {@link String#toCharArray()}
*/
Notice how only the latter has correct syntax highlighting.
Expected behavior:
Syntax highlighting should be applied to the @link tag when referring to a method or a class.
Actual behavior:
Syntax highlighting is only applied to the @link tag when referring to a method.
Reproduces how often:
Every time.
Versions
I'm using VSCode, however it apparently uses the Atom Java grammar upstream, so I'm reporting here. (See the below linked issue.)
Additional Information
Thanks for reporting the issue!
The issue is in textmate grammar. Note that Atom uses tree-sitter grammar for language-java now, the textmate support is deprecated. Textmate grammar still receives updates but they are treated as a lower priority at the moment so it might take us longer than usual to fix the issue.