Skip to content

another missing comma error syntax #34

Closed
@itchyny

Description

@itchyny

There are some error syntax which the syntax file does not warn us.
First case:

[
  { "object1": 1 }
  { "object2": 2 }
]

should be

[
  { "object1": 1 },
  { "object2": 2 }
]

Second case:

{
  "object1": []
  "object2": []
}

should be

{
  "object1": [],
  "object2": []
}

Also missing comma after literals like true/false, {}.

{
  "object1": true
  "object2": 2
}

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