IDLua icon indicating copy to clipboard operation
IDLua copied to clipboard

Integer division operator is not recognized

Open rillig opened this issue 4 years ago • 0 comments

Lua 5.4 (and probably a few earlier versions) support the integer division operator //. This operator should not produce parse errors, and when formatting the source code, should not be split into / /. Example program:

local function roundup(n, mul)
  return (n + mul) // mul * mul
end

rillig avatar Aug 30 '20 17:08 rillig