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

Backtick comments negatively impact subsequent parsing #244

Open
thenbe opened this issue Feb 4, 2024 · 1 comment
Open

Backtick comments negatively impact subsequent parsing #244

thenbe opened this issue Feb 4, 2024 · 1 comment

Comments

@thenbe
Copy link

thenbe commented Feb 4, 2024

In nvim, the first comment is highlighted correctly. However, all subsequent matching is adversely affected. Both comments and flags are highlighted incorrectly after the first comment.

2024-02-04-21-36-19

The full tree for reference. It's a bit difficult to spot, but my cursor is on line 72 of the :InspectTree buffer.

2024-02-04-21-41-24

For reference, this is how this file looks on github, where the comments are correctly highlighted (the rest is also a bit wonky):

2024-02-04-21-36-58

@amaanq
Copy link
Member

amaanq commented Feb 4, 2024

This is a known yet unsolvable issue without disallowing comments in certain rules (which the reserved rules api intends to solve if that ever comes about)

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