aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-05-28 23:12:18 +0000
committernyamatongwe <devnull@localhost>2010-05-28 23:12:18 +0000
commit8d76aa668502ce3f36c76c1cbf679d0276951011 (patch)
tree625c9b512d3e802d716e1d5b61fd0ad1565c713d /src
parent37cec69bdc4c70508d3f5564e0027472dfd90f9e (diff)
downloadscintilla-mirror-8d76aa668502ce3f36c76c1cbf679d0276951011.tar.gz
Patch from Xavi ensures that
nA>0.AND. lexes the .AND. as a word operator.
Diffstat (limited to 'src')
-rw-r--r--src/LexFlagship.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/LexFlagship.cxx b/src/LexFlagship.cxx
index f0c794e76..e3a8b9f25 100644
--- a/src/LexFlagship.cxx
+++ b/src/LexFlagship.cxx
@@ -86,9 +86,13 @@ static void ColouriseFlagShipDoc(unsigned int startPos, int length, int initStyl
}
break;
case SCE_FS_NUMBER:
+ if (!IsAWordChar(sc.ch) && !(sc.ch == '.' && IsADigit(sc.chNext))) {
+ sc.SetState(SCE_FS_DEFAULT);
+ }
+ break;
case SCE_FS_NUMBER_C:
if (!IsAWordChar(sc.ch) && sc.ch != '.') {
- sc.SetState(bEnableCode ? SCE_FS_DEFAULT : SCE_FS_DEFAULT_C);
+ sc.SetState(SCE_FS_DEFAULT_C);
}
break;
case SCE_FS_CONSTANT: