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

ast.to_lua_source adds unnecessary parenthesis for class (and maybe other) arguments #6

Open
baurse opened this issue Sep 2, 2021 · 1 comment

Comments

@baurse
Copy link
Owner

baurse commented Sep 2, 2021

Class(AAirUnit) {
    bar
}

gets turned into

Class(AAirUnit)({
    bar
})

Note that not only are the parenthesis unecessary, the whitespace after the class call is missing as well.

@Garanas
Copy link
Collaborator

Garanas commented Oct 30, 2021

This is fine - having no parenthesis is purely syntactic sugar.

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