Skip to content

Trailing commas in Luau types are unexpectedly stripped #284

@Dekkonot

Description

@Dekkonot

When running darklua process, trailing commas in types are stripped even if no rules are enabled. This occurs in DarkLua v0.16.0.

You can demonstrate this by making a simple file that contains types with trailing commas:

type Foo = {
  key1: Type1,
  key2: Type2,
}

and processing it with no rules (a config like {"rules":[]}) results in:

type Foo = {
  key1: Type1,
  key2: Type2
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions