Skip to content

non-standard Lua keyword 'continue' appears in grammar #67

@AbigailBrady

Description

@AbigailBrady

'continue' is not a keyword in any release of standard Lua that I am aware of, and is valid for use as an identifier name

e.g. running

lua5.4
Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio
> continue = "hello world"
> continue
hello world
> 

parsing this file using py-lua-parser produces this error because it has 'continue' as a loop-control keyword instead

line 1:9 mismatched input '=' expecting <EOF>

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