mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-05 23:50:19 +00:00
39 lines
2.7 KiB
Plaintext
39 lines
2.7 KiB
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>name</key>
|
|
<string>Indent</string>
|
|
<key>scope</key>
|
|
<string>source.js</string>
|
|
<key>settings</key>
|
|
<dict>
|
|
<key>decreaseIndentPattern</key>
|
|
<string>(?x)^ \s* (?!//|/\*)
|
|
# (nothing | ( string | no parens )+ | (no parens? (nested parens ) no parens?)+ ) Close
|
|
( (?: | ( (?<str> '(\\'|[^'])*+' | "(\\"|[^"])*+" | /(\\/|[^/])*+/) | (?<noR>[^\[\]'"/]++) )++ | (\g<noR>? (?<round> \[ (?: \g<str> | \g<noR> | \g<round> )* \] ) \g<noR>? )++ ) \]
|
|
| (?: | ( \g<str> | (?<noS>[^\(\)'"/]++) )++ | (\g<noS>? (?<squar> \( (?: \g<str> | \g<noS> | \g<squar> )* \) ) \g<noS>? )++ ) \)
|
|
| (?: | ( \g<str> | (?<noC>[^\{\}'"/]++) )++ | (\g<noC>? (?<curly> \{ (?: \g<str> | \g<noC> | \g<curly> )* \} ) \g<noC>? )++ ) \}
|
|
| \b(?:case|default)\b
|
|
(\g<str> | \g<noC> | \g<noC>? \g<curly> \b<noC>?)++ (?!\})
|
|
$
|
|
)</string>
|
|
<key>increaseIndentPattern</key>
|
|
<string>(?x)^ \s* (?!//|/\*)([^\s].*)?
|
|
# Open (nothing | ( string | no parens )+ | (no parens? (nested parens ) no parens?)+ )
|
|
( \[ (?: | ( (?<str> '(\\'|[^'])*+' | "(\\"|[^"])*+" | /(\\/|[^/])*+/) | (?<noR>[^\[\]'"/]++) )++ | (\g<noR>? (?<round> \[ (?: \g<str> | \g<noR> | \g<round> )* \] ) \g<noR>? )++ )
|
|
| \( (?: | ( \g<str> | (?<noS>[^\(\)'"/]++) )++ | (\g<noS>? (?<squar> \( (?: \g<str> | \g<noS> | \g<squar> )* \) ) \g<noS>? )++ )
|
|
| \{ (?: | ( \g<str> | (?<noC>[^\{\}'"/]++) )++ | (\g<noC>? (?<curly> \{ (?: \g<str> | \g<noC> | \g<curly> )* \} ) \g<noC>? )++ )
|
|
| \b(?:case|default)\b
|
|
(\g<str> | \g<noC> | \g<noC>? \g<curly> \b<noC>?)++ (?!\})
|
|
)$</string>
|
|
<key>indentNextLinePattern</key>
|
|
<string>^\s*((if|while|for|switch|else if).*[)]|else)\s*$</string>
|
|
<key>unIndentedLinePattern</key>
|
|
<string>^\s*((/\*|\*/\s*$|\ \*).*)?$</string>
|
|
</dict>
|
|
<key>uuid</key>
|
|
<string>BC062860-3346-4D3B-8421-C5543F83D11F</string>
|
|
</dict>
|
|
</plist>
|