mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
Indent Rules for PHP
This commit is contained in:
parent
1813139e6e
commit
77ff4e0870
|
@ -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));))"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue