From cae5837123728fe1ede9dfb9070b81369322e900 Mon Sep 17 00:00:00 2001 From: Zachary Gardner Date: Thu, 16 Jun 2022 16:18:25 -0400 Subject: [PATCH 1/2] fix overaggressive formatting --- configurations/gdscript-configuration.json | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/configurations/gdscript-configuration.json b/configurations/gdscript-configuration.json index 52d17422f..d769c6621 100644 --- a/configurations/gdscript-configuration.json +++ b/configurations/gdscript-configuration.json @@ -64,10 +64,6 @@ "}" ] ], - "indentationRules": { - "increaseIndentPattern": "^\\s*((class|static func|func|else|elif|for|if|match|while|enum)|(.*\\sdo\\b))\\b[^\\{;]*$", - "decreaseIndentPattern": "^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(else|elif)\\b)" - }, "folding": { "offSide": true, "markers": { @@ -77,10 +73,10 @@ }, "onEnterRules": [ { - "beforeText": "^\\s*$", + "beforeText": ":\\s*$", "action": { - "indent": "none" + "indent": "indent" } } ] -} +} \ No newline at end of file From 669469963362c6ec4f06c58e8e6751def81a76f4 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 16 Jun 2022 22:50:13 +0200 Subject: [PATCH 2/2] Apply suggestions from code review --- configurations/gdscript-configuration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configurations/gdscript-configuration.json b/configurations/gdscript-configuration.json index d769c6621..44bfed0cd 100644 --- a/configurations/gdscript-configuration.json +++ b/configurations/gdscript-configuration.json @@ -79,4 +79,4 @@ } } ] -} \ No newline at end of file +}