-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Bracket matching wrong on Nix #3487
Comments
The above code's |
#3594 might help a bit with this, at least in the case where the string contains a language with a tree-sitter parser known to helix. |
That's true but doesn't fully explain the behavior. According to that explanation, there is no reason for helix to highlight any matching quotes in this case, especially not a different quote than the one the cursor is on (single vs double) |
Actually, scratch that, Helix doesn't seem to use language injection for text objects yet, only syntax highlighting. |
This was fixed by #7242 (its not highlighted anymore now, we don't highlight inside string literals) |
Summary
With this code snippet:
The wrong matching bracket is highlighted, and gone to with
mm
Possibly related:
#3357
#3432
Reproduction Steps
I tried this:
hx test.nix
(file containing above snippet)I expected this to happen:
Either:
Instead, this happened:
The closing quote for the nix multi-line string is highlighted, despite being a single quote and not a double.
Helix log
~/.cache/helix/helix.log
Platform
Linux - Nixos
Terminal Emulator
Gnome console
Helix Version
helix 22.05 (27609f5)
The text was updated successfully, but these errors were encountered: