jroesch/language-haskell — pull request #11 by MichaelRawson (2014-10-01 12:54:10+00:00)
Title: fixed "module" keyword word-anchoring

Hi,

I have some identifiers in my source files that start with "module": for instance, "moduleContent", or "moduleSymbols", but the syntax highlighter tries to highlight them as a module declaration, and sometimes screws up the rest of the file as well:

![dodgy syntax highlighting](https://cloud.githubusercontent.com/assets/1696762/4475154/32571e56-4969-11e4-9b4b-82fe241f6e51.png)

To fix it, I think the "module" keyword needs to be boundary-aligned (`\b`) like some of the other keywords ("class", "instance" etc). I've implemented this in this pull request, and it seems to work.

Have a nice day!