Sublime Forum

Haskell syntax definition bug

#1

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

I’ve changed Haskell.tmLanguage to fix it (line 167):

[code]- (import)

  •   	<string>(^import\s)</string>[/code]
    

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]

  •   	<string>(module)</string>
    
  •   	<string>(^module\s)</string>[/code]
0 Likes