Difference between tree-sitter-cli and neovim highlighting priority #5031
Answered
by
clason
luckasRanarison
asked this question in
Q&A
-
Hey there! I've created a parser and highlight queries for my toy programming language and I got an issue, the highlight priority in the cli and neovim are different, tree-sitter-cli captures the first highlight and neovim the last one. On the top left the actual neovim highlighting and on the bottom left the cli highlighting: Inspection: |
Beta Was this translation helpful? Give feedback.
Answered by
clason
Jun 28, 2023
Replies: 1 comment 2 replies
-
Yes, that is intentional and due to the different precedence of query order:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
luckasRanarison
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, that is intentional and due to the different precedence of query order: