StyLua
StyLua copied to clipboard
Luau: Compound `__idiv` assignment
A program such as this will not format as it seems integer division isn't supported by the parser.
local value = 3
value //= 2
The error for this specific program is as follows (running within visual studio code):
[error] error: could not format from stdin: failed to format from stdin: error parsing: error occurred while creating ast: unexpected token `value`. (starting from line 2, character 1 and ending on line 2, character 6)
additional information: leftover token