소스 검색

Fix overaggressive formatting when adding lines after `if` statement (#385)

Co-authored-by: Hugo Locurcio <[email protected]>
Zachary Gardner 3 년 전
부모
커밋
4562bf1c31
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 6
      configurations/gdscript-configuration.json

+ 2 - 6
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"
             }
         }
     ]