Skip to content

Commit

Permalink
Fix overaggressive formatting when adding lines after if statement (#…
Browse files Browse the repository at this point in the history
…385)

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
  • Loading branch information
ZachIsAGardner and Calinou authored Jun 16, 2022
1 parent fd11e47 commit 4562bf1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions configurations/gdscript-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -77,9 +73,9 @@
},
"onEnterRules": [
{
"beforeText": "^\\s*$",
"beforeText": ":\\s*$",
"action": {
"indent": "none"
"indent": "indent"
}
}
]
Expand Down

0 comments on commit 4562bf1

Please sign in to comment.