diff options
Diffstat (limited to 'src/LexHaskell.cxx')
| -rw-r--r-- | src/LexHaskell.cxx | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/LexHaskell.cxx b/src/LexHaskell.cxx index 095675ee5..3213bd520 100644 --- a/src/LexHaskell.cxx +++ b/src/LexHaskell.cxx @@ -179,6 +179,9 @@ static void ColorizeHaskellDoc(unsigned int startPos, int length, int initStyle,           // Digit           if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) {              sc.SetState(SCE_HA_NUMBER); +            if (sc.ch == '0' && (sc.chNext == 'X' || sc.chNext == 'x')) { // Match anything starting with "0x" or "0X", too +               sc.Forward(1); +            }           }           // Comment line           else if (sc.Match("--")) { | 
