-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Syntax does not understand antiquotations inside paths #196
Comments
Thanks for reporting @lilyball . I'd be happy to accept a PR fixing this. |
It's been quite a while but it looks like I didn't make a separate thing for paths, instead mashing it into the operators:
So the thing to do would be to make |
@wmertens Paths aren't done as the operators, they're done as part of strings: vscode-nix-ide/syntaxes/nix.YAML-tmLanguage Lines 460 to 464 in 8e89986
The way expressions are done in general is weird though, it looks like each expression is actually a capture group that either names the In any case, my guess here is that a way to fix this would be to change |
perhaps adding bits from this-better-nix-syntax project can work ? |
Nix 2.4 introduced the ability to put antiquotations inside path literals (release notes):
The Nix syntax definition doesn't understand this. If I write
/${foo}
it marks the/
as eitherinvalid.illegal
or as an operator depending on context. If I writefoo/bar/${baz}/wat
it highlights this just like it doesfoo/bar / ${baz} /wat
.The text was updated successfully, but these errors were encountered: