-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat: reintroduce raw-strings #117
base: main
Are you sure you want to change the base?
Conversation
And in general, I would strongly recommend to make conceptually unrelated changes in separate PRs; that makes it much easier to review and merge preliminary steps. (You can cherry-pick commits from PRs that are required to be merged first, as long as you clearly label them as such and rebase.) |
We have enough scripts under version control with all kinds of syntax.
Incorporated all reviews, removed the pipeline changes that neither provide insights nor prevent anything. Maybe pipeline is a separate issue that should be addressed at some point. |
Ping me if/when we're ready to land this and I'll push the button. |
Thanks to @blindFS for the thorough review! Is there someone else who would want to review? Otherwise, I'd be ready to land, again |
Aaah, wait a second Edit: okay, now! |
@@ -90,6 +90,10 @@ file_path: (val_string) @variable.parameter | |||
(escaped_interpolated_content) @string | |||
(expr_interpolated ["(" ")"] @variable.parameter) | |||
|
|||
(raw_string_begin) @string |
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 probably don't need this, val_string
will get it properly highlighted.
Discussion with tree-sitter devs
This will break the current
nvim-treesitter
config. They have to update to also usescanner.c
. People using that config might want to use "our" way to install ts-nu.After merge, it might be necessary to run
:TSUpdate nu
at least once. I don't know about treesitter's caching, so let's just hope that nobody's setup breaks.With that scanner, we can also create custom logic for unquoted strings.