-
-
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
strings highlighting is not right in nushell scripts #4162
Comments
This appears to be an issue with the grammar itself, provided by this repo. In this file specifically, it may have something to do with helix/runtime/queries/nu/highlights.scm Lines 29 to 35 in 9b7f349
|
ooh yes i see it 😮 i tried to modify my [
"if"
"else"
"let"
"def"
"export"
"def-env"
] @keyword but then the hightlighting is completely gone 🤔 i'm new to |
This can't be solved just by modifying the highlights - the syntax tree has an ERROR node indicating that the parser failed to parse some of the code successfully. This will need to be fixed upstream in https://github.com/LhKipp/tree-sitter-nu |
okok i see 🤔 |
there it is 💪 |
according the @LhKipp, LhKipp/tree-sitter-nu#3 has been fixed 👍 |
Summary
hello there 👋 😋
i just have a syntax hightlighting issue with some
nushell
code 🤔below is a screenshot of what is happening 👍
🟢 the syntax hightlighting is right
🔵 it starts to shift around the
"\nLOG:"
string of characters🔴 it is not right anymore and everything looks like a string, except strings themselves
🟠 the file is correctly identified as a
nushell
scriptReproduction Steps
functions.nu
around the line withexport def-env vcfg
I expect the string highlight to stop at the end of
"\nLOG:"
Instead, it continues to the bottom of the file, i.e. the strings and the rest are inverted 😮
Helix log
nothing relevant to report from
~/.cache/helix/helix.log
Platform
Linux 5.19.10-arch1-1
Terminal Emulator
alacritty 0.10.1 ()
Helix Version
(22.08.1-165-g4d4be0e8)
The text was updated successfully, but these errors were encountered: