forked from RubyMotionJP/SublimeRubyMotionBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Miscellaneous.tmPreferences
44 lines (44 loc) · 1.46 KB
/
Miscellaneous.tmPreferences
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?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>Indent</string>
<key>scope</key>
<string>source.rubymotion</string>
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
<string>^\s*([}\]]\s*$|(end|rescue|ensure|else|elsif|when)\b)</string>
<key>increaseIndentPattern</key>
<string>(?x)^
(\s*
(module|class|def
|unless|if|else|elsif
|case|when
|begin|rescue|ensure
|for|while|until
|(?= .*? \b(do|begin|case|if|unless)\b )
# the look-ahead above is to quickly discard non-candidates
( "(\\.|[^\\"])*+" # eat a double quoted string
| '(\\.|[^\\'])*+' # eat a single quoted string
| [^#"'] # eat all but comments and strings
)*
( \s (do|begin|case)
| [-+=&|*/~%^<>~](?<!\$.) \s*+ (if|unless)
)
)\b
(?! [^;]*+ ; .*? \bend\b )
|( "(\\.|[^\\"])*+" # eat a double quoted string
| '(\\.|[^\\'])*+' # eat a single quoted string
| [^#"'] # eat all but comments and strings
)*
( \{ (?! [^}]*+ \} )
| \[ (?! [^\]]*+ \] )
)
).*$</string>
</dict>
<key>uuid</key>
<string>C87EFBE4-69F0-42FC-8C13-4E16331B7FB2</string>
</dict>
</plist>