sylvanaar / IDLua

Lua For IntelliJ IDEA
Apache License 2.0
58 stars 19 forks source link

Integer division operator is not recognized #21

Open rillig opened 4 years ago

rillig commented 4 years ago

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