Skip to content

Integer division operator is not recognized #21

@rillig

Description

@rillig

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions