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

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
Zachary Gardner
2022-06-16 19:03:00 -04:00
committed by GitHub
parent fd11e47662
commit 4562bf1c31

View File

@@ -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"
}
}
]