-
Notifications
You must be signed in to change notification settings - Fork 440
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
string in import statement is not escaped like regular strings #172
Comments
If you can use |
sparkprime
added a commit
to sparkprime/jsonnet
that referenced
this issue
Aug 14, 2017
sparkprime
added a commit
to sparkprime/jsonnet
that referenced
this issue
Aug 14, 2017
sparkprime
added a commit
that referenced
this issue
Aug 15, 2017
We also have a test for @"something\something" now. When I do the next release, I'll mention in the release notes that @ is now suggested for Windows paths. |
This was referenced Nov 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The spec is a bit vague on import, but the BNF clearly says it's a regular string, so it should process escape chars in the same way.
This change could cause grief for people on windows doing import "c:\blah.jsonnet".
On the other hand, the ability to import unicode files with \uXXXX codepoints may be useful.
There is another difference that also does not appear in the spec: You cannot use ||| text blocks in import statements. Either relax that restriction or update the spec.
The text was updated successfully, but these errors were encountered: