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

@link highlighting broken when linking to class #244

Open

Description

@SamJakob

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

Activity

  1. sadikovi commented on Jan 9, 2021

    @sadikovi
    Contributor

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions