diff --git a/extensions/php/language-configuration.json b/extensions/php/language-configuration.json index 771eda20528..3e09d8084cf 100644 --- a/extensions/php/language-configuration.json +++ b/extensions/php/language-configuration.json @@ -14,6 +14,9 @@ { "open": "(", "close": ")", "notIn": ["string"] }, { "open": "'", "close": "'", "notIn": ["string", "comment"] }, { "open": "\"", "close": "\"", "notIn": ["string"] } - ] - + ], + "indentationRules": { + "increaseIndentPattern": "({(?!.+}).*|\\(|\\[|((else)?if|else|for(each)?|while|switch).*:)\\s*(/[/*].*)?$", + "decreaseIndentPattern": "^(.*\\*/)?\\s*(}|(\\)+([;,]|\\s*{))|(\\]\\)*([;,]|$))|else:|((end(if|for(each)?|while|switch));))" + } } \ No newline at end of file