@link highlighting broken when linking to class
See original GitHub issueWhen 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.
Environment
- Operating System: Windows 10
- JDK version: JavaSE-1.8
- Visual Studio Code version: 1.52.1
- Java extension version: 0.73.0
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.
Current Result
Syntax highlighting is only applied to the @link tag when referring to a method.
Expected Result
Syntax highlighting should be applied to the @link tag when referring to a method or a class.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
C++ highlighting broken on class template specializations, but ...
With C++, class/struct template declarations break syntax highlighting with template specialization only when there's not an opening brace ...
Read more >Pagination current link not highlighting - php - Stack Overflow
According to my pagination library, all my pagination links are printed out as class="pagination-num" and the class="pagination-current" is ...
Read more >Page link repair instructions
Broken links and missing images often have the same causes, often as simple as a capitalization error in a file name. See below...
Read more >How do I validate links in a course? - Canvas Community
As an instructor, you can verify links to course content throughout your course to ensure they are valid. You can check these links...
Read more >Hyperlinks not working in Outlook? How to make links open ...
The article explains why hyperlinks may not be working in Outlook and provides several solutions to fix the issue.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

FYI @fbricon @SamJakob this issue can also be fixed via semantic highlighting. I had this in mind for my next iteration of semantic highlighting improvements, and I’ve actually already implemented a fix for this specific issue, which has been sitting on my local development branch for a while.
Sadly I got busy and never got to the point of submitting a PR. But I think I’ll have time to do that next week. So if all goes well I’m guessing this can make it into the next release of the extension.
Also, isn’t the TextMate grammar defined by the extension itself now, since #1638? I mean, the issue still has to be fixed upstream, but we don’t really depend upon VS Code anymore.
@0dinD thanks for the fix, i will close the issue.