php - fix identation drifting on empty single-long blocks

Fixes https://github.com/microsoft/vscode/issues/34424
This commit is contained in:
Connor Peet 2019-10-11 11:22:13 -07:00
parent 72f3185301
commit 867bcaee0d
No known key found for this signature in database
GPG key ID: CF8FD2EA0DBC61BD

View file

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