Skip to content
Browse files

Add folding settings for ERB.

  • Loading branch information...
1 parent 48fa996 commit 8bbbcd482d48e494a125967aeca673a652d18645 @infininight infininight committed Nov 21, 2011
Showing with 28 additions and 1 deletion.
  1. +27 −0 Preferences/Folding - ERB.tmPreferences
  2. +1 −1 Preferences/Folding.tmPreferences
View
27 Preferences/Folding - ERB.tmPreferences
@@ -0,0 +1,27 @@
+<?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 (ERB)</string>
+ <key>scope</key>
+ <string>text.html.erb</string>
+ <key>settings</key>
+ <dict>
+ <key>foldingStartMarker</key>
+ <string>(?x)
+ (&lt;(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?&gt;
+ |&lt;!--(?!.*--&gt;)
+ |\{\s*($|\?&gt;\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
+ )</string>
+ <key>foldingStopMarker</key>
+ <string>(?x)
+ (&lt;/(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)&gt;
+ |^\s*--&gt;
+ |(^|\s)\}
+ )</string>
+ </dict>
+ <key>uuid</key>
+ <string>EA050E4E-1658-4AA6-BE90-9D4638823A10</string>
+</dict>
+</plist>
View
2 Preferences/Folding.tmPreferences
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>name</key>
- <string>Folding</string>
+ <string>Folding (Ruby)</string>
<key>scope</key>
<string>source.ruby</string>
<key>settings</key>

0 comments on commit 8bbbcd4

Please sign in to comment.
Something went wrong with that request. Please try again.