Skip to content

Update tree-sitter-rust and fix C, Rust and Erlang highlights #3467

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

Merged

Conversation

the-mikedavis
Copy link
Member

Closes #3463

Updates tree-sitter-rust to the latest which fixes some edge-cases in the parsing. It doesn't look like there were any breaking changes and scanning around the code I don't see anything off.

I also have some random fixes here for:

  • The # in rust attributes
  • C booleans, const and <=/>= operators
  • Empty Erlang records and Edoc-style auto-pairs

* "const" keyword
* booleans
* <=/>= operators
Specifically this changes backtic's right-hand-side pair character
to single-quote which is the syntax for inline and block code in
Edoc.
For example

    -record(state, {})

Would not highlight `state` as a type since the alternation didn't
allow for an empty tuple. Allowing the inner atom of the tuple to be
optional fixes this case.
There don't appear to be any regressions from the updates.
Also included is a fix which highlights the "#" as in attributes
as punctuation. This was previously unhighlighted.
@archseer archseer merged commit 03f0ef9 into helix-editor:master Aug 31, 2022
@the-mikedavis the-mikedavis deleted the md-language-tuning-party-pack branch August 31, 2022 12:46
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

Successfully merging this pull request may close these issues.

Rust: A for loop with an open range breaks syntax highlighting for the next keyword
2 participants