-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Broken Rust highlighting #4739
Comments
This is caused by the update of tree-sitter-rust in #4717. The Rust highlighting on master is not actually broken though, you just have some stale state somewhere. The "Could not parse queries..." error log line points out that the Also make sure that you don't have a [[grammar]]
name = "rust"
source = { .. } block in your |
Hey thanks for this detailed answer. Indeed I had the I found more of those sections in the file for other languages. So would you recommend to remove these in order to prevent this occurrence for other languages as well in the future? Sorry for the buggy bug, report. 😬 |
Yep, there's no need to copy the # ~/.config/helix/languages.toml
[[language]]
name = "rust"
auto-format = false |
Summary
Hi all,
with the latest revision (c74b974), Rust highlighting is broken. Building on revision 07d3157 works.
Reproduction Steps
I tried this:
git checkout c74b97447f7a84f7728ce41c796f435371563a68
cargo install --path helix-term
hx --grammar fetch
hx --grammar build
hx
I expected this to happen:
Rust source code is highlighted.
Instead, this happened:
Rust source code is not highlighted.
Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
alacritty 0.12.0-dev (77855806)
Helix Version
22.08.1-435-gc74b9744
Edit: Updated Summary section.
The text was updated successfully, but these errors were encountered: