-
Notifications
You must be signed in to change notification settings - Fork 30
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
test_virtualenv.nu errors #148
Comments
I think it is a duplication of #125 , |
ya, double quotes within double quotes shouldn't work but I guess nushell handles it. Although, I've never ran this script to see but the vscode manual lsp handles it ok. but single, backtick, and double quotes should all be embeddable within each other. I'll close this as dupe and wait for when the other one is fixed. thanks! |
Yes, nushell handles this in a very flexible way. As long as there's no space inside the "inner string" and the quotes are properly paired, it's considered a valid string. |
We may be able to write that clearer with raw strings in the script too. Not sure if that works here or not. |
I think it's definitely a better idea to suggest users to use raw strings in these scenarios. But tree-sitter-nu doesn't support raw string either for now. I think I can copy it from the rust grammar, which uses a scanner for raw strings. |
@mrdgo has been working on a raw strings scanner for a while now. It must be pretty complicated. I'm sure you've seen it. |
Just had a glimpse of the code, seems pretty close to completion. I can take a look at the remaining issues if @mrdgo is not working on it any more. |
There's a script called test_virtualenv.nu in the nushell repo under scripts. It has many errors in it. So I'm just posting it here as a TODO.
Here's the script.
The text was updated successfully, but these errors were encountered: