aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-06-16 12:49:37 +0000
committernyamatongwe <unknown>2009-06-16 12:49:37 +0000
commit2f757fddcf72724a7db278326ad04f67d67c2403 (patch)
tree7635302c56625cc3fdf4da5200d5d06e01bbf358
parentc403377b62163bf3384bf774c9c8e4b13dc2ef54 (diff)
downloadscintilla-mirror-2f757fddcf72724a7db278326ad04f67d67c2403.tar.gz
Bug #2806565 FORTH lexer is too keen to mark things as numbers.
-rw-r--r--src/LexForth.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/LexForth.cxx b/src/LexForth.cxx
index 45d8903e8..e52543fa5 100644
--- a/src/LexForth.cxx
+++ b/src/LexForth.cxx
@@ -94,6 +94,8 @@ static void ColouriseForthDoc(unsigned int startPos, int length, int initStyle,
if (sc.state == SCE_FORTH_NUMBER) {
if (IsASpaceChar(sc.ch)) {
sc.SetState(SCE_FORTH_DEFAULT);
+ } else if (!IsANumChar(sc.ch)) {
+ sc.ChangeState(SCE_FORTH_IDENTIFIER);
}
}
}else if (sc.state == SCE_FORTH_STRING) {