StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

Luau: Compound `__idiv` assignment

Open ArvidSilverlock opened this issue 1 year ago • 0 comments

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

ArvidSilverlock avatar Oct 17 '24 12:10 ArvidSilverlock