Open TeamPuzel opened 4 months ago
Noticed some additional weirdness
!
is highlighted like a keywordFound more, or
and and
keywords are also not highlighted properly
Hey @TeamPuzel! Zig highlights are defined here, via tree-sitter queries: https://github.com/zed-industries/zed/blob/main/crates/languages/src/zig/highlights.scm
To fix those (if you want to take a stab, or someone else):
cargo run /path/to/zig/project
debug: open syntax tree view
crates/languages/src/zig/highlights.scm
in another editor instance, edit the highlights in there, save and you should see changesRecommendation: look at highlights of other languages to see what the proper captures are (the things that start with @
). Rust is probably our best-supported language.
Check for existing issues
Describe the bug / provide steps to reproduce it
In all themes the orelse keyword is not highlighted correctly, instead being treated as a symbol. Does not happen in vscode.
Environment
Zed: v0.126.2 (Zed) OS: macOS 14.4.0 Memory: 32 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response