Skip to content

incorrect line and line number for syntax error #277

Open
@kmafeni04

Description

@kmafeni04

Bug description

Incorrect line and line number for syntax error

nelua test.nelua
test.nelua:2:0: syntax error: unclosed parenthesis, did you forget a `)`?

^

Code example

print(

Expected behavior

nelua test.nelua
test.nelua:1:6: syntax error: unclosed parenthesis, did you forget a `)`?

^

Workaround

If you have already found a way to workaround the issue,
then please share how you did it,
this may help others with the same issue.

Environment

Nelua 0.2.0-dev
Arch Linux
x86_64
gcc

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions