Skip to content

Deletes commas inside arrays when next value is negative #22

Open
@timepieces141

Description

@timepieces141

If I have an array, and one of the values is a negative number, JSONComma will delete the comma that precedes it when I save the file.

A few example JSON that will cause this.

{
    "foobar": [0, -1]
}
{
    "foobar": [0, 1, -1]
}
{
    "foobar": [0, -1, 4]
}
{
    "foobar": [0, -1, 4, -2]
}

All of these examples will delete the comma directly preceding the minus sign (-), but will leave all of the others.

Sublime Text Build: 4107
Installed via Package Control

If I remove JSONComma via Package Control, the commas no longer disappear on delete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions