You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can also be reproduced with if statements instead of while loops
Output:
$ stylua x.lua
error: could not format file x.lua: error parsing: error occurred while creating ast: unexpected token `end`. (starting from line 4, character 1 and ending on line 4, character 4)
additional information: expected identifier after `::`
Workaround
Adding a semicolon to explicitely terminate the variable declaration/assignment makes the error go away
Lua code to reproduce the error:
Can also be reproduced with if statements instead of while loops
Output:
Workaround
Adding a semicolon to explicitely terminate the variable declaration/assignment makes the error go away
Additional details:
This bug was originally found while working on thunder-coding/zincoxide@0a007af.
Stylua has been installed from Arch Linux's repository
The text was updated successfully, but these errors were encountered: