Skip to content

Parsing issue for interpolated string #277

@jeparlefrancais

Description

@jeparlefrancais

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions