atom / language-java

Java package for Atom
Other
62 stars 58 forks source link

@link highlighting broken when linking to class #244

Open SamJakob opened 3 years ago

SamJakob commented 3 years ago

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: https://github.com/redhat-developer/vscode-java/issues/1753

sadikovi commented 3 years ago

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.