Open raiguard opened 3 months ago
This is the same issue as #402
The stylua release binaries are built with all feature flags enabled, and the Luau type assertion syntax conflicts with Lua 5.2 label syntax.
You can use cargo to build a binary with only lua52 enabled and that should work. Hopefully in the next major release we will have runtime configurable syntax selection
Attempting to format this valid Lua code:
gives the following error:
This is likely a full-moon issue rather than something specific to stylua, but I don't want to jump the gun just in case.