-
-
Notifications
You must be signed in to change notification settings - Fork 650
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 interpolation parsing may fail if brackets exist inside interpolated expression #2595
Milestone
Comments
Shouldn't this fail at |
This should probably parse though: var a = "This" {" should";} " work"; |
This is an interpolated string. According to the Haxe manual, anything inside the ${} is taken as an expression, and any expression is allowed. This includes other strings (as well as blocks, functions, loops, etc). A strange construct, yes, but it's in the docs: |
See #2244 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code fails to parse:
trace('${'This' {" should";} ' work'}');
Outputs:
Unexpected work
Tested with http://try.haxe.org, version reported as 3.1.0 1c25e98
The text was updated successfully, but these errors were encountered: