Home Download Buy Blog Forum Support

Haskell syntax definition bug

Haskell syntax definition bug

Postby voidex on Fri Dec 07, 2012 2:24 pm

Sublime detects 'import' part of identifiers like 'importSomething' as keyword and breaks highlighting.

I've changed Haskell.tmLanguage to fix it (line 167):
Code: Select all
-         <string>(import)</string>
+         <string>(^import\s)</string>


Seems, that this change doesn't break anything, because import must be at beginning of line followed by space.

Update
And same issue with 'module' at line 50:
Code: Select all
-         <string>(module)</string>
+         <string>(^module\s)</string>
voidex
 
Posts: 2
Joined: Mon Oct 08, 2012 11:41 am

Return to Technical Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 19 guests