Skip to content

Commit 867bcae

Browse files
committed
php - fix identation drifting on empty single-long blocks
Fixes microsoft#34424
1 parent 72f3185 commit 867bcae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/php/language-configuration.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
["`", "`"]
2626
],
2727
"indentationRules": {
28-
"increaseIndentPattern": "({(?!.+}).*|\\(|\\[|((else(\\s)?)?if|else|for(each)?|while|switch|case).*:)\\s*(/[/*].*)?$",
28+
"increaseIndentPattern": "({(?!.*}).*|\\(|\\[|((else(\\s)?)?if|else|for(each)?|while|switch|case).*:)\\s*(/[/*].*)?$",
2929
"decreaseIndentPattern": "^(.*\\*\\/)?\\s*((\\})|(\\)+[;,])|(\\][;,])|\\b(else:)|\\b((end(if|for(each)?|while|switch));))"
3030
},
3131
"folding": {

0 commit comments

Comments
 (0)