Indentation Rules.tmPreferences (959B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <plist version="1.0"> 3 <dict> 4 <key>name</key> 5 <string>Indentation Rules</string> 6 <key>scope</key> 7 <string>source.c, source.c++, source.objc, source.objc++</string> 8 <key>settings</key> 9 <dict> 10 <key>decreaseIndentPattern</key> 11 <string>(?x) 12 ^ (.*\*/)? \s* \} .* $ 13 | ^ \s* (public|private|protected): \s* $ 14 | ^ \s* @(public|private|protected) \s* $ 15 </string> 16 <key>increaseIndentPattern</key> 17 <string>(?x) 18 ^ .* \{ [^}"']* $ 19 | ^ \s* (public|private|protected): \s* $ 20 | ^ \s* @(public|private|protected) \s* $ 21 </string> 22 23 <key>bracketIndentNextLinePattern</key> 24 <string>(?x) 25 ^ \s* \b(if|while|else)\b [^;]* $ 26 | ^ \s* \b(for)\b .* $ 27 </string> 28 29 <key>unIndentedLinePattern</key> 30 <string><![CDATA[^\s*((/\*|.*\*/|//|#|template\b.*?>(?!\(.*\))|@protocol|@interface(?!.*\{)|@implementation|@end).*)?$]]></string> 31 32 <key>indentSquareBrackets</key> 33 <true/> 34 </dict> 35 </dict> 36 </plist>