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

Formatting changed the code #30

Open
nico-abram opened this issue Sep 20, 2018 · 2 comments
Open

Formatting changed the code #30

nico-abram opened this issue Sep 20, 2018 · 2 comments

Comments

@nico-abram
Copy link

nico-abram commented Sep 20, 2018

image

Running the formatter here changed the code's meaning/purpose. It's a bit of an edge case. Changing it to have an if instead of "or function() end" made the formatter work properly

@evaera
Copy link

evaera commented Oct 8, 2018

This definitely isn't an edge case! Using semicolons to end statements in Lua is commonplace in many projects. The most common case is when you must begin a statement with a parenthesis, in which you need a semicolon to terminate the previous statement otherwise Lua won't parse it as it's ambiguous syntax.

@nico-abram
Copy link
Author

This should be marked as bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants