Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

@link highlighting broken when linking to class #244

Open
1 task done
SamJakob opened this issue Jan 1, 2021 · 1 comment
Open
1 task done

@link highlighting broken when linking to class #244

SamJakob opened this issue Jan 1, 2021 · 1 comment

Comments

@SamJakob
Copy link

SamJakob commented Jan 1, 2021

Prerequisites

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

  1. Open a Java file
  2. Paste in the following Javadoc comment
/**
 * {@link String}
 * {@link String#toCharArray()}
 */

image
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

See: redhat-developer/vscode-java#1753

@sadikovi
Copy link
Contributor

sadikovi commented Jan 9, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants