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

ZIG Incorrect Highlights #11095

Closed
jacknicklenson opened this issue Jul 5, 2024 · 2 comments
Closed

ZIG Incorrect Highlights #11095

jacknicklenson opened this issue Jul 5, 2024 · 2 comments

Comments

@jacknicklenson
Copy link

jacknicklenson commented Jul 5, 2024

in zig files some variables & functions are highlight wrongly. In snazzy theme (screenshots have my custom snazzy theme but TS highlights same, I didn't change), vars should be light blue, functions should be green. In screenshots, you can see tree-sitter-highlight-name output. It detects wrongly.

Helix version: helix 24.3 (2cadec0b)
Windows 11

image

This is another case:
image

@David-Else
Copy link
Contributor

Helix uses 3rd party tree-sitter implementations for language highlighting, if there is a problem it almost certainly needs to be fixed at https://github.com/maxxnino/tree-sitter-zig/ , the reference to which version is being used is https://github.com/helix-editor/helix/blob/master/languages.toml#L1348C19-L1348C62

Perhaps using the latest version would fix the bug, this would require submitting a PR, the last time it was updated seems to be Aug 23 #7803

@jacknicklenson
Copy link
Author

okay thx for the reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants