diff options
| author | Jostein Kjønigsen | 2022-12-16 16:01:41 +0100 |
|---|---|---|
| committer | Yuan Fu | 2022-12-16 14:53:45 -0800 |
| commit | f9cb144d45a9ff64f57edd1f93b7ac2ae0efdd34 (patch) | |
| tree | 13fdd9e1c2cad5db5c7f1a40fad1875aa6507214 | |
| parent | 3d348c46e78b09493265620c96afeafad747a96e (diff) | |
| download | emacs-f9cb144d45a9ff64f57edd1f93b7ac2ae0efdd34.tar.gz emacs-f9cb144d45a9ff64f57edd1f93b7ac2ae0efdd34.zip | |
Fix indentation in json-ts-mode (bug#60123)
* lisp/progmodes/json-ts-mode.el
(json-ts--indent-rules): Add indentation rules for arrays.
| -rw-r--r-- | lisp/progmodes/json-ts-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/json-ts-mode.el b/lisp/progmodes/json-ts-mode.el index 6fb982e37bd..6c2f3805872 100644 --- a/lisp/progmodes/json-ts-mode.el +++ b/lisp/progmodes/json-ts-mode.el | |||
| @@ -70,7 +70,8 @@ | |||
| 70 | ((node-is "}") parent-bol 0) | 70 | ((node-is "}") parent-bol 0) |
| 71 | ((node-is ")") parent-bol 0) | 71 | ((node-is ")") parent-bol 0) |
| 72 | ((node-is "]") parent-bol 0) | 72 | ((node-is "]") parent-bol 0) |
| 73 | ((parent-is "object") parent-bol json-ts-mode-indent-offset)))) | 73 | ((parent-is "object") parent-bol json-ts-mode-indent-offset) |
| 74 | ((parent-is "array") parent-bol json-ts-mode-indent-offset)))) | ||
| 74 | 75 | ||
| 75 | (defvar json-ts-mode--font-lock-settings | 76 | (defvar json-ts-mode--font-lock-settings |
| 76 | (treesit-font-lock-rules | 77 | (treesit-font-lock-rules |