From 4562bf1c319f2a84fd12025c8d16c086d3f27947 Mon Sep 17 00:00:00 2001 From: Zachary Gardner <30502195+ZachIsAGardner@users.noreply.github.com> Date: Thu, 16 Jun 2022 19:03:00 -0400 Subject: [PATCH] Fix overaggressive formatting when adding lines after `if` statement (#385) Co-authored-by: Hugo Locurcio --- configurations/gdscript-configuration.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/configurations/gdscript-configuration.json b/configurations/gdscript-configuration.json index 52d1742..44bfed0 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,9 +73,9 @@ }, "onEnterRules": [ { - "beforeText": "^\\s*$", + "beforeText": ":\\s*$", "action": { - "indent": "none" + "indent": "indent" } } ]