Last active
December 20, 2015 14:59
-
-
Save niallsmart/6151200 to your computer and use it in GitHub Desktop.
Fix for ST2 Ruby HAML formatting – allow hyphens in element tag names.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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