projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d348c4
)
Fix indentation in json-ts-mode (bug#60123)
author
Jostein Kjønigsen
<jostein@kjonigsen.net>
Fri, 16 Dec 2022 15:01:41 +0000
(16:01 +0100)
committer
Yuan Fu
<casouri@gmail.com>
Fri, 16 Dec 2022 22:53:45 +0000
(14:53 -0800)
* lisp/progmodes/json-ts-mode.el
(json-ts--indent-rules): Add indentation rules for arrays.
lisp/progmodes/json-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/json-ts-mode.el
b/lisp/progmodes/json-ts-mode.el
index 6fb982e37bd081b33edd658da7cc4f32d7362fd0..6c2f38058720e652a5c785b035e245663203bbd2 100644
(file)
--- a/
lisp/progmodes/json-ts-mode.el
+++ b/
lisp/progmodes/json-ts-mode.el
@@
-70,7
+70,8
@@
((node-is "}") parent-bol 0)
((node-is ")") parent-bol 0)
((node-is "]") parent-bol 0)
- ((parent-is "object") parent-bol json-ts-mode-indent-offset))))
+ ((parent-is "object") parent-bol json-ts-mode-indent-offset)
+ ((parent-is "array") parent-bol json-ts-mode-indent-offset))))
(defvar json-ts-mode--font-lock-settings
(treesit-font-lock-rules