Home Download Buy Blog Forum Support

Pull request: Haskell syntax fix w/patch

Pull request: Haskell syntax fix w/patch

Postby Fumon on Fri Jul 13, 2012 7:45 pm

Hello,

The current Haskell.tmLanguage highlighting incorrectly renders certain files including:
https://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.

Code: Select all
--- 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
Fumon
 
Posts: 1
Joined: Fri Jul 13, 2012 7:38 pm

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 31 guests