From 519811c487dd74043148402384f92b5e2e943be2 Mon Sep 17 00:00:00 2001 From: Jens Hausdorf Date: Tue, 1 Aug 2017 00:21:06 +0200 Subject: [PATCH] Improve php language config --- extensions/php/language-configuration.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/php/language-configuration.json b/extensions/php/language-configuration.json index 3e09d8084cf8c..b3404f1fba804 100644 --- a/extensions/php/language-configuration.json +++ b/extensions/php/language-configuration.json @@ -16,7 +16,7 @@ { "open": "\"", "close": "\"", "notIn": ["string"] } ], "indentationRules": { - "increaseIndentPattern": "({(?!.+}).*|\\(|\\[|((else)?if|else|for(each)?|while|switch).*:)\\s*(/[/*].*)?$", - "decreaseIndentPattern": "^(.*\\*/)?\\s*(}|(\\)+([;,]|\\s*{))|(\\]\\)*([;,]|$))|else:|((end(if|for(each)?|while|switch));))" + "increaseIndentPattern": "({(?!.+}).*|\\(|\\|((else(\s)?)?if|else|for(each)?|while|switch).*:)\\s*(\/(\/*).*)?)?$", + "decreaseIndentPattern": "^(.*\\*\/)?\\s*(}|(\\)+([;,]|\\s*{))|(\\]\\)*([;,]|$)|else:|((end(if|for(each)?|while|switch));)" } -} \ No newline at end of file +}