Closed reo101 closed 1 year ago
There's a bug in the highlighting of the
switch
statements (not sure how to fix it) and I've noted it in the query file.
Yes, that is an issue with Neovim (neovim/neovim#17099), you have a node SwitchExpr
with two opening and two closing delimiter nodes on the same level. The correct pattern would be this:
(SwitchExpr
["{" "("]+ @opening
["}" ")"]+ @closing) @container
However, when we iterate through the nodes of the capture only the first node will be returned. I'd say just leave it as is for now, we have a comment as a reminder in the query file.
I've updated the comment(s) to better reflect the situation. Turns out that the two asm-related queries (AsmInputItem
and AsmOutputItem
) also fall victim to the same issue.
Merged, thank you
I think I've covered everything, please let me know if I've missed something. There's a bug in the highlighting of the
switch
statements (not sure how to fix it) and I've noted it in the query file.Here's a screenshot of the test file:
Cheers :smile: