Skip to content

Commit

Permalink
Improve php language config
Browse files Browse the repository at this point in the history
  • Loading branch information
jens1o authored Jul 31, 2017
1 parent 563b40c commit 519811c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions/php/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -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));)"
}
}
}

0 comments on commit 519811c

Please sign in to comment.