-
Notifications
You must be signed in to change notification settings - Fork 86
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
Syntax error from long string inside table constructor brackets #291
Comments
For reference, I think the parts responsible for writing arrays and fields are these ones: LuaFormatter/src/visitor/var.cpp Lines 54 to 70 in 29afe10
LuaFormatter/src/visitor/table.cpp Lines 199 to 211 in 29afe10
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LuaFormatter version 1.3.6 produces invalid output if the input program contains a
[[
string inside a[ ] =
table constructor.When we format this, the spaces are removed and the result is a syntax error
The good news is that LuaFormatter already does the right thing for array brackets such as
xs[ [[abc]] ]
. Perhaps whatever logic is being used there should also be used for table constructors.The text was updated successfully, but these errors were encountered: