Skip to content

Support Lua5.4 local var attributes like <const> ?  #533

@will

Description

@will

https://www.lua.org/manual/5.4/manual.html#3.3.7

In 5.4 you can say things like local color_type <const> = type(color) but stylua can't parse the <

error: could not format file ./modules/NobleScene.lua: error parsing: error occurred while creating ast: unexpected token `<`. (starting from line 187, character 14 and ending on line 187, character 15)
additional information: expected 'end'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestexternalThis issue relies on an external factor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions