Fix PHP indentation rule for 'case'

Fix #81107
This commit is contained in:
Rob Lourens
2019-10-09 18:30:24 -07:00
parent ecb1de1afe
commit c0bd994bc7

View File

@@ -25,7 +25,7 @@
["`", "`"]
],
"indentationRules": {
"increaseIndentPattern": "({(?!.+}).*|\\(|\\[|((else(\\s)?)?if|else|for(each)?|while|switch).*:)\\s*(/[/*].*)?$",
"increaseIndentPattern": "({(?!.+}).*|\\(|\\[|((else(\\s)?)?if|else|for(each)?|while|switch|case).*:)\\s*(/[/*].*)?$",
"decreaseIndentPattern": "^(.*\\*\\/)?\\s*((\\})|(\\)+[;,])|(\\][;,])|\\b(else:)|\\b((end(if|for(each)?|while|switch));))"
},
"folding": {
@@ -34,4 +34,4 @@
"end": "^\\s*(#|\/\/)endregion\\b"
}
}
}
}