Does anyone know if the file Indentation Rules.tmPreferences in php is actually used? I don’t see a case statement in there and have a problem with the code within the case not being indented… ie
switch (variable) {
case 'value':
echo 'bb';
break;
default:
# code...
break;
}[/code]
[code]<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Indentation Rules</string>
<key>scope</key>
<string>source.php - comment</string>
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
<string>(?x) ^ (.*\*/)? \s* \} .* $|<\?(php)?\s+(else(if)?|end(if|for(each)?|while))</string>
<key>indentNextLinePattern</key>
<string>^(?!.*(#|//|\*/|<\?))(?!.*};:]\s*(//|/\*.*\*/\s*$)).*^\s;:{}]\s*$|<\?php.+?\b(if|else(?:if)?|for(?:each)?|while)\b.*:(?!.*end\1)</string>
<key>bracketIndentNextLinePattern</key>
<string>(?x)
^ \s* \b(if|while|else|elseif|foreach)\b ^;]* $
| ^ \s* \b(for)\b .* $
</string>
</dict>
<key>uuid</key>
<string>CA15DF69-E80D-46DA-BD45-E88C68E92117</string>
</dict>
</plist>