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

swap highlight query order #10791

Open
MrBrN197 opened this issue May 18, 2024 · 2 comments
Open

swap highlight query order #10791

MrBrN197 opened this issue May 18, 2024 · 2 comments
Labels
A-language-support Area: Support for programming/text languages C-enhancement Category: Improvements

Comments

@MrBrN197
Copy link

not sure but this zig highlight queries seems to in the wrong order.
I believe the intention was for the second query to be an exception for the first BUILTINIDENTIFIER and swapping the order gets it working as such for me.

(BUILTINIDENTIFIER) @function.builtin
((BUILTINIDENTIFIER) @keyword.control.import
(#any-of? @keyword.control.import "@import" "@cImport"))

@MrBrN197 MrBrN197 added the C-enhancement Category: Improvements label May 18, 2024
@pascalkuthe pascalkuthe added the A-language-support Area: Support for programming/text languages label May 19, 2024
@the-mikedavis
Copy link
Member

Yep that is reversed. Feel free to send a PR but we will eventually swap the order that we use so that we match the tree-sitter CLI and neovim (#9458) and then we will want to switch the ordering back

@MrBrN197
Copy link
Author

MrBrN197 commented Jun 6, 2024

no problem waiting for that issue is better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

3 participants