Skip to content

Support LuaJIT syntax enhancements #1099

Description

@ligurio
$ cat chunk.lua 
print(0x1p-1026)

$ luajit chunk.lua 
1.390671161567e-309

$ stylua chunk.lua 
error: could not format file chunk.lua: error parsing: 
 - unexpected token `(` (1:6 to 1:7), expected `)` to close function call
 - unexpected token `-` (1:11 to 1:12), unexpected expression when looking for a statement
 - unexpected token `-` (1:11 to 1:12), unexpected token, this needs to be a statement

stylua 2.2.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexternalThis issue relies on an external factor

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions