Home Download Buy Blog Forum Support

How to submit a HAML improvement?

How to submit a HAML improvement?

Postby bronson on Tue Dec 04, 2012 9:35 pm

Hi, Sublime's built-in HAML highlighting supports = blocks but not != blocks (they're identical except that != doesn't HTML escape the output).

How can I submit my fix for inclusion in Sublime? Thanks.

The fix is a two line patch: https://github.com/bronson/SublimeTextS ... 1b7cf875c9

Or embedded here for posterity...

Code: Select all
diff --git a/Packages/Rails/Ruby Haml.tmLanguage b/Packages/Rails/Ruby Haml.tmLanguage
index 88d43f2..8bf14a4 100644
--- a/Packages/Rails/Ruby Haml.tmLanguage       
+++ b/Packages/Rails/Ruby Haml.tmLanguage       
@@ -90,7 +90,7 @@
                                </dict>
                        </dict>
                        <key>end</key>
-                       <string>$|(?!\.|#|\{|\[|=|-|~|/)</string>
+                       <string>$|(?!\.|#|\{|\[|(?:!?=)|-|~|/)</string>
                        <key>patterns</key>
                        <array>
                                <dict>
@@ -199,7 +199,7 @@
                <key>rubyline</key>
                <dict>
                        <key>begin</key>
-                       <string>=|-|~</string>
+                       <string>(?:!?=)|-|~</string>
                        <key>contentName</key>
                        <string>source.ruby.embedded.haml</string>
                        <key>end</key>

bronson
 
Posts: 38
Joined: Wed Nov 28, 2012 8:52 pm

Re: How to submit a HAML improvement?

Postby bronson on Wed Sep 11, 2013 12:36 am

This simple (and seemingly obvious) fix still hasn't been merged into ST3...

Please tell me where I can submit this?
bronson
 
Posts: 38
Joined: Wed Nov 28, 2012 8:52 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 26 guests