Permalink
Browse files

Move folding settings.

  • Loading branch information...
1 parent c2cf38e commit fe5f1c552a85f179ffd478a9bcc0a98bcd27efd4 @infininight infininight committed Nov 12, 2011
Showing with 52 additions and 36 deletions.
  1. +52 −0 Preferences/Folding.tmPreferences
  2. +0 −36 Syntaxes/Ruby.plist
View
52 Preferences/Folding.tmPreferences
@@ -0,0 +1,52 @@
+<?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>Folding</string>
+ <key>scope</key>
+ <string>source.ruby</string>
+ <key>settings</key>
+ <dict>
+ <key>foldingStartMarker</key>
+ <string>(?x)^
+ (\s*+
+ (module|class|def(?!.*\bend\s*$)
+ |unless|if
+ |case
+ |begin
+ |for|while|until
+ |^=begin
+ |( "(\\.|[^"])*+" # eat a double quoted string
+ | '(\\.|[^'])*+' # eat a single quoted string
+ | [^#"'] # eat all but comments and strings
+ )*
+ ( \s (do|begin|case)
+ | (?&lt;!\$)[-+=&amp;|*/~%^&lt;&gt;~] \s*+ (if|unless)
+ )
+ )\b
+ (?! [^;]*+ ; .*? \bend\b )
+ |( "(\\.|[^"])*+" # eat a double quoted string
+ | '(\\.|[^'])*+' # eat a single quoted string
+ | [^#"'] # eat all but comments and strings
+ )*
+ ( \{ (?! [^}]*+ \} )
+ | \[ (?! [^\]]*+ \] )
+ )
+ ).*$
+ | [#] .*? \(fold\) \s*+ $ # Sune’s special marker
+ </string>
+ <key>foldingStopMarker</key>
+ <string>(?x)
+ ( (^|;) \s*+ end \s*+ ([#].*)? $
+ | (^|;) \s*+ end \. .* $
+ | ^ \s*+ [}\]] ,? \s*+ ([#].*)? $
+ | [#] .*? \(end\) \s*+ $ # Sune’s special marker
+ | ^=end
+ )
+ </string>
+ </dict>
+ <key>uuid</key>
+ <string>494CBF95-0A56-41B9-BD5A-FC3EEEF28172</string>
+</dict>
+</plist>
View
36 Syntaxes/Ruby.plist
@@ -59,42 +59,6 @@
</array>
<key>firstLineMatch</key>
<string>^#!/.*\bruby</string>
- <key>foldingStartMarker</key>
- <string>(?x)^
- (\s*+
- (module|class|def(?!.*\bend\s*$)
- |unless|if
- |case
- |begin
- |for|while|until
- |^=begin
- |( "(\\.|[^"])*+" # eat a double quoted string
- | '(\\.|[^'])*+' # eat a single quoted string
- | [^#"'] # eat all but comments and strings
- )*
- ( \s (do|begin|case)
- | (?&lt;!\$)[-+=&amp;|*/~%^&lt;&gt;~] \s*+ (if|unless)
- )
- )\b
- (?! [^;]*+ ; .*? \bend\b )
- |( "(\\.|[^"])*+" # eat a double quoted string
- | '(\\.|[^'])*+' # eat a single quoted string
- | [^#"'] # eat all but comments and strings
- )*
- ( \{ (?! [^}]*+ \} )
- | \[ (?! [^\]]*+ \] )
- )
- ).*$
- | [#] .*? \(fold\) \s*+ $ # Sune’s special marker
- </string>
- <key>foldingStopMarker</key>
- <string>(?x)
- ( (^|;) \s*+ end \s*+ ([#].*)? $
- | (^|;) \s*+ end \. .* $
- | ^ \s*+ [}\]] ,? \s*+ ([#].*)? $
- | [#] .*? \(end\) \s*+ $ # Sune’s special marker
- | ^=end
- )</string>
<key>keyEquivalent</key>
<string>^~R</string>
<key>name</key>

0 comments on commit fe5f1c5

Please sign in to comment.