diff options
author | nyamatongwe <devnull@localhost> | 2009-06-16 12:49:37 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-06-16 12:49:37 +0000 |
commit | c88cf709b315c42009079f003ebba0d7764eae58 (patch) | |
tree | 7635302c56625cc3fdf4da5200d5d06e01bbf358 /src | |
parent | aac95a5cd938ccf084358fcd3dbea3ccd0d19942 (diff) | |
download | scintilla-mirror-c88cf709b315c42009079f003ebba0d7764eae58.tar.gz |
Bug #2806565 FORTH lexer is too keen to mark things as numbers.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexForth.cxx | 2 |
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) { |