-
-
Notifications
You must be signed in to change notification settings - Fork 3k
update nushell parser and queries #14377
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
base: master
Are you sure you want to change the base?
update nushell parser and queries #14377
Conversation
oh whoops, my personal change got in there |
my bad, turns out helix can comprehend |
pushed the comment fix; pretty neatly, it uses |
no clue what the error is in the ci btw. |
Perhaps the new parser is doing something that corrupts the stack? As this PR itself adds no |
fascinating! thank you for the inspection |
I'm gonna try to run the ci through again, after removing all queries; to test if queries are part of the issue or not |
3035114
to
1ab2835
Compare
with no queries at all, the tests did pass; so the issue is likely with one of the queries. I'm going to bring back each file one by one until I find the offending one |
it's not the folds |
not the highlights |
macos now?? seemed like a networking error though, I'll try again |
not the indents |
not the textobjects |
not the uhhh.... anything? must've been the wind? |
runtime/queries/nu/textobjects.scm
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also for these, see https://docs.helix-editor.com/master/guides/textobject.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have a lot of missing captures... do I just like, delete them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete the queries for captures we don't have in helix (and can't be represented as a different capture), I mean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think the neovim queries cover a lot more than the textobjects we have. We can drop or comment-out the ones that don't fit into the Helix queries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mhm, that's what I did. good to know
Do you mind testing this PR out on this file? https://github.com/iniw/system/blob/master/modules/shell/config/config.nu Currently helix produces the wrong highlighting for everything past line 66, which contains an Also, inline nushell code in |
dear github, (i.e. I'll look into it but ffs 😭) |
I experienced broken syntax highlighting in Nushell code all the time, so no need to be frustrated. |
for context, I'm not part of the nushell team, nor is the treesitter parser / queries mine; I just took them from the upstream repo to sync helix up to speed, with some minor changes. so that's where my “sir, I just work here” 😭ation comes from hahaha |
notably, I didn't lose the jq injection while bringing in the new queries
also adds an injections for
fish -c