You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a very weird bug. Looking at this with nvim-treesitter-playground I can see that this is properly recognized as an (html_tag). As such the html parser should be injected which in turn should recognize the comment. It seem though that the html parser is never injected.
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 (html_comment) which could be configured in neovim to be highlighted as a comment. In this case the html parser is not needed and everything should work fine.
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: