Skip to content
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

Parsing issue for interpolated string #277

Closed
jeparlefrancais opened this issue May 8, 2023 · 1 comment · Fixed by #283
Closed

Parsing issue for interpolated string #277

jeparlefrancais opened this issue May 8, 2023 · 1 comment · Fixed by #283
Labels
bug Something isn't working

Comments

@jeparlefrancais
Copy link
Contributor

I also noticed that the string { {} } does not parse in full-moon in the latest version:

unexpected double brace for interpolated string. try \\{ if you meant to escape

But for better or worse it is supported.

Other test cases:

local _ = `{{ }}` -- err
local _ = `{{hello}}` -- err
local _ = `{ {}}` -- ok
local _ = `{--[[]]{}}` -- ok
local _ = `\{{true}` -- ok
local _ = `{ {true}}` -- ok
local _ = `{ {hello}}` -- err? I don't think I understand why this one errors but not the previous one though
local _ = `\{{hello}}` -- ok
@JohnnyMorganz
Copy link
Collaborator

I've reported the inconsistent behaviour of the weird interpolation error upstream: luau-lang/luau#1019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants