Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad indentation of objects #40

Closed
VPanteleev-S7 opened this issue Mar 3, 2024 · 1 comment · Fixed by #41
Closed

Bad indentation of objects #40

VPanteleev-S7 opened this issue Mar 3, 2024 · 1 comment · Fixed by #41

Comments

@VPanteleev-S7
Copy link

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 added a commit that referenced this issue Mar 4, 2024
jq-mode (jq-smie-grammar): add object to grammar
jq-mode (jq-mode-symtax-table): Add different parenthesis to syntax table

Fixes #40
@ljos ljos closed this as completed in #41 Mar 4, 2024
ljos added a commit that referenced this issue Mar 4, 2024
jq-mode (jq-smie-grammar): add object to grammar
jq-mode (jq-mode-symtax-table): Add different parenthesis to syntax table

Fixes #40
@ljos
Copy link
Owner

ljos commented Mar 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants