Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlight is not working correctly for multiline comments #414

Open
ablekhman opened this issue Sep 30, 2021 · 1 comment
Open

Syntax highlight is not working correctly for multiline comments #414

ablekhman opened this issue Sep 30, 2021 · 1 comment

Comments

@ablekhman
Copy link

The syntax highlight is not working correctly for multiline Java comments:

/**
 * @some_tag text text
 * more multiline text 
 * ...
 */

In the case above all lines, except the first one (/**), are not recognised as comments. As a result, syntax highlight is applied to comments as if they are valid code lines.

@reyronald
Copy link
Member

This is a known limitation of how the extension works. Each line is highlighted individually and it not aware of the surrounding context.

Theoretically it would be possible to fix but I feel it's not worth the effort.

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

No branches or pull requests

2 participants