-
Notifications
You must be signed in to change notification settings - Fork 22
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
Interpolation closing brace is not tokenized #20
Labels
Comments
Looks like you found a bug. I'll look into it this week
…On Sun., 2 Dec. 2018, 11:15 pm Nedo ***@***.*** wrote:
Hi I've tried the following example:
tokenize(' #{$var +20} 10')
the output is
[ [ 'space', ' ' ],
[ 'startInterpolant', '#{', 1, 3 ],
[ '$', '$', 1, 4 ],
[ 'ident', 'var', 1, 5, 1, 7 ],
[ 'space', ' ' ],
[ '+', '+', 1, 9 ],
[ 'number', '20', 1, 10, 1, 11 ], // closing brace should be after this
[ 'space', ' ' ],
[ 'number', '10', 1, 14, 1, 15 ] ]
as you can see there's a startInterpolant token but the output doesn't
indicate anything about the the closing brace.
Am I missing anything ? is there a different way to handle this syntax #{
} ?
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#20>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAjZWNIVGUzkWbvEA-g7x1TMV0m0Q8uKks5u08RbgaJpZM4Y9X9v>
.
|
xzyfer
added a commit
that referenced
this issue
Dec 3, 2018
xzyfer
added a commit
that referenced
this issue
Dec 3, 2018
xzyfer
added a commit
that referenced
this issue
Dec 3, 2018
Fixed in 0.4.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi I've tried the following example:
the output is
as you can see there's a
startInterpolant
token but the output doesn't indicate anything about the the closing brace.Am I missing anything ? is there a different way to handle this syntax
#{ }
?Thanks
The text was updated successfully, but these errors were encountered: