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

Confused error message #141

Closed
Sainan opened this issue Oct 24, 2022 · 0 comments · Fixed by #146
Closed

Confused error message #141

Sainan opened this issue Oct 24, 2022 · 0 comments · Fixed by #146
Labels
bug Something isn't working

Comments

@Sainan
Copy link
Collaborator

Sainan commented Oct 24, 2022

Given the following code:

for t end

We get the following error:

test.lua:1: '=' or 'in' expected, but found reserved keyword 'end'
    1 | for t end
      | ^^^^^^^^^ here: reserved keyword cannot be used in this context.
      + note: Reserved keywords *can* be used outside of relevant contexts, but this is a relevant context!

Which just seems akward & confused.

@Sainan Sainan added the bug Something isn't working label Oct 24, 2022
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.

1 participant