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

Allow trailing semi-colons #41

Closed
skx opened this issue May 25, 2021 · 0 comments · Fixed by #42
Closed

Allow trailing semi-colons #41

skx opened this issue May 25, 2021 · 0 comments · Fixed by #42
Assignees
Labels
enhancement New feature or request

Comments

@skx
Copy link
Owner

skx commented May 25, 2021

This is fine:

let key="Name"
let val="Steve"

But if you add a trailing semi-colon, which habit forces upon me you get an error:

$ cat temp.in
let key="Name"
let val="Steve";
$ ./marionette temp.in
Error:expected '{', got {EOF }

Ideally we'd allow the trailing semi-colon, but if we don't we could have a better error message.

@skx skx self-assigned this May 25, 2021
@skx skx added the enhancement New feature or request label May 25, 2021
@skx skx closed this as completed in #42 May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant