aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-06-16 12:49:37 +0000
committernyamatongwe <devnull@localhost>2009-06-16 12:49:37 +0000
commitc88cf709b315c42009079f003ebba0d7764eae58 (patch)
tree7635302c56625cc3fdf4da5200d5d06e01bbf358
parentaac95a5cd938ccf084358fcd3dbea3ccd0d19942 (diff)
downloadscintilla-mirror-c88cf709b315c42009079f003ebba0d7764eae58.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) {