-
Notifications
You must be signed in to change notification settings - Fork 400
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
compiler: escape reserved keywords #477
Comments
@nhooyr any ideas on how best to do this? Just prefix a backslash? e.g. |
this isn't an issue normally, because you can just relabel things, e.g.
but for SQL tables this doesn't work |
for now i should just make sure
|
Ooo I see, we should change the compiler to ensure that any reserved key is unquoted and without any backslashes. Also need autofmt to preserve backslashes which I don't remember if it does right now. I know it doesn't preserve line continuations still. |
E.g. width and height should be usable as sql table column keys.
https://play.d2lang.com/?script=AvnbSiE4sypVoZpLQQHsaiuF4sKc-JLEpJxULgUFJbA6JSuFvNLcpNQikAgkoBBCtVyAAAAA__8%3D
The text was updated successfully, but these errors were encountered: