From 2f757fddcf72724a7db278326ad04f67d67c2403 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 16 Jun 2009 12:49:37 +0000 Subject: Bug #2806565 FORTH lexer is too keen to mark things as numbers. --- src/LexForth.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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) { -- cgit v1.2.3