Skip to content

Instantly share code, notes, and snippets.

@niallsmart
Last active December 20, 2015 14:59
Show Gist options
  • Save niallsmart/6151200 to your computer and use it in GitHub Desktop.
Save niallsmart/6151200 to your computer and use it in GitHub Desktop.
Fix for ST2 Ruby HAML formatting – allow hyphens in element tag names.
diff --git a/Ruby Haml.tmLanguage.orig b/Ruby Haml.tmLanguage
index 88d43f2..8a2e90c 100644
--- a/Ruby Haml.tmLanguage.orig
+++ b/Ruby Haml.tmLanguage
@@ -70,7 +70,7 @@
</dict>
<dict>
<key>begin</key>
- <string>^\s*(?:((%)([\w:]+))|(?=\.|#))</string>
+ <string>^\s*(?:((%)([\w:-]+))|(?=\.|#))</string>
<key>captures</key>
<dict>
<key>1</key>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment