Permalink
Browse files

Tweak Haml a bit more.

= no longer starts ruby colorizing if it's not at the beginning of the line (or directly after a tag)
Comment blocks now colorize embedded haml
Tags can now contain colons

git-svn-id: http://svn.textmate.org/trunk/Bundles/Haml.tmbundle@6472 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent afe40b7 commit 6f3a28d35d6a98483c37d62a702fc102ce3cb0c3 @kballard kballard committed Jan 21, 2007
Showing with 19 additions and 3 deletions.
  1. +19 −3 Syntaxes/Haml.tmLanguage
@@ -55,10 +55,17 @@
<string>^(?!\1 )</string>
<key>name</key>
<string>comment.block.haml</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>text.haml</string>
+ </dict>
+ </array>
</dict>
<dict>
<key>begin</key>
- <string>^\s*(?:((%)(\w+))|(?=\.|#))</string>
+ <string>^\s*(?:((%)([\w:]+))|(?=\.|#))</string>
<key>captures</key>
<dict>
<key>1</key>
@@ -156,8 +163,17 @@
<string>^\s*(\\.)</string>
</dict>
<dict>
- <key>include</key>
- <string>#rubyline</string>
+ <key>begin</key>
+ <string>^\s*(?==)</string>
+ <key>end</key>
+ <string>$</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#rubyline</string>
+ </dict>
+ </array>
</dict>
</array>
<key>repository</key>

0 comments on commit 6f3a28d

Please sign in to comment.