Skip to content

Syntax error though code is valid #127

Description

@dimozaprianov

Currently the parser throws syntax error here, although it is perfectly valid lua code. When removing the newlines the parser behaves as expected.

    const ast = luaparse.parse(`
    l.v(function(v) 
    end) 
    {
    } 
    (
    )`
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions