aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2008-09-06 11:16:55 +0000
committernyamatongwe <devnull@localhost>2008-09-06 11:16:55 +0000
commitfbc8850c2bbac8207b879a6f1f0355a374049cdc (patch)
tree0306a9cdf05c7df8c9dfeff8734d96e2405d90f5 /src
parente9bcdd6ab66913e001b1ba24660265f3cb82fba1 (diff)
downloadscintilla-mirror-fbc8850c2bbac8207b879a6f1f0355a374049cdc.tar.gz
Handle hexadecimal literals.
Diffstat (limited to 'src')
-rw-r--r--src/LexHaskell.cxx3
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("--")) {