Sublime Forum

Pull request: Haskell syntax fix w/patch

#1

Hello,

The current Haskell.tmLanguage highlighting incorrectly renders certain files including:
github.com/colah/ImplicitCAD/bl … mitives.hs

The problem lies in line 27 onwards with the string module appearing in the middle of a name.

Please find enclosed a patch for the above bug.

--- Haskell.tmLanguage  2012-07-13 15:35:34.725448315 -0400
+++ Haskell.tmLanguage_new  2012-07-13 15:36:39.682114326 -0400
@@ -47,7 +47,7 @@
    </dict>
    <dict>
      <key>begin</key>
-     <string>(module)</string>
+     <string>\b(module)\b</string>
      <key>beginCaptures</key>
      <dict>
        <key>1</key>
@@ -57,7 +57,7 @@
        </dict>
      </dict>
      <key>end</key>
-     <string>(where)</string>
+     <string>\b(where)\b</string>
      <key>endCaptures</key>
      <dict>
        <key>1</key>

This issue is preventing at least one of my colleagues from adopting Sublime as his preferred text editor.

Thank You

0 Likes