-
Notifications
You must be signed in to change notification settings - Fork 54
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
Faulty highlighting of inline comments #66
Comments
This is a very weird bug. Looking at this with So to me it seems to be a bug in neovim or nvim-treesitter though I cannot say that with certainty. A workaround that I could implement in my grammar, is to add a new node type, let's say |
Just fixed a similar problem for the helix editor in helix-editor/helix#4478, but I think neovim has a different problem with this. |
Thanks for the feedback! I can open an issue in nvim-treesitter to see what they think. |
Gonna close this, as it seems to be better fixed on the editor and not the parser level, but feel free to reopen if there's still any issue. |
Describe the bug
Code example
Expected behavior
The comment is highlighted as a comment.
Actual behavior
The comment is highlighted as normal text. See this screenshot (with neovim):
This seems similar but not quite the same as #36, though I didn't quite understand what the issue is there (and it's also marked as "invalid").
Highlighting gets applied correctly when I remove the heading and also if there's a comment as the first element of the paragraph.
The text was updated successfully, but these errors were encountered: