From aa4ef9b63594662c787f77dafb6432e753086d0d Mon Sep 17 00:00:00 2001 From: kyklish Date: Mon, 26 Dec 2022 14:47:03 +0200 Subject: [PATCH 1/2] indentationRules --- language/ahk.configuration.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/language/ahk.configuration.json b/language/ahk.configuration.json index 32b4354e..751b814c 100644 --- a/language/ahk.configuration.json +++ b/language/ahk.configuration.json @@ -20,6 +20,11 @@ "notIn": ["string"] } ], + "indentationRules": { + "increaseIndentPattern": "^((?!;).)*\\{[^}]*$", + "decreaseIndentPattern": "^\\s*((?!;)[^{])*\\}.*$", + "indentNextLinePattern": "^\\s*(if|ifmsgbox|else|loop|for|while|catch)\\b" + }, "surroundingPairs": [ ["{", "}"], ["[", "]"], From d7bdbe472d770bbd2b0686f5e5351b74fa79c6b5 Mon Sep 17 00:00:00 2001 From: kyklish Date: Mon, 26 Dec 2022 14:54:31 +0200 Subject: [PATCH 2/2] CamelCase variant --- language/ahk.configuration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/ahk.configuration.json b/language/ahk.configuration.json index 751b814c..2bdbd14a 100644 --- a/language/ahk.configuration.json +++ b/language/ahk.configuration.json @@ -23,7 +23,7 @@ "indentationRules": { "increaseIndentPattern": "^((?!;).)*\\{[^}]*$", "decreaseIndentPattern": "^\\s*((?!;)[^{])*\\}.*$", - "indentNextLinePattern": "^\\s*(if|ifmsgbox|else|loop|for|while|catch)\\b" + "indentNextLinePattern": "^\\s*(if|ifmsgbox|else|loop|for|while|catch|If|IfMsgBox|Else|Loop|For|While|Catch)\\b" }, "surroundingPairs": [ ["{", "}"],