From c8920a2b6b333e43fb65162dd59dceab68d4ea59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jostein=20Kj=C3=B8nigsen?= Date: Fri, 16 Dec 2022 16:01:41 +0100 Subject: [PATCH 3/3] Fix indentation in json-ts-mode lisp/progmodes/json-ts-mode.el: add indentation rules for arrays --- lisp/progmodes/json-ts-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ json-ts--indent-rules ((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 -- 2.34.1