chrisdone/haskell-emacs — Issue #29: Syntax highlighting of numbers
Author: pheaver
Created: 2011-12-05 08:34:55+00:00
State: open

`hs-mode-font-lock-keywords` defines syntax highlighting of numbers:

;; Numbers
("\\<[0-9]+\\>\\.?[0-9]*" . ,hs-number-face)

This will cause numbers in function names such as pow_2 to be highlighted as numbers.

Strangely, I have a running emacs session now where that regex does *not* match the 2 in pow_2, but another emacs session where it does. I'm not sure what's going on there.

- Philip