ljos / jq-mode

Emacs major mode for editing jq queries.
GNU General Public License v3.0
110 stars 12 forks source link

Bad indentation of objects #40

Closed VPanteleev-S7 closed 7 months ago

VPanteleev-S7 commented 7 months ago

Hi, thanks for this package!

I noticed that indentation rules sometimes don't behave well. One case I noticed today is object literals:

{
"foo":1,
"bar":2,
"baz":3
}

Currently, this gets formatted as:

{
  "foo":1,
     "bar":2,
        "baz":3
}

which isn't very useful.

ljos commented 7 months ago

Hi, thank you for the bug report. I think it should be fixed now.