diff options
author | nyamatongwe <unknown> | 2010-05-28 23:12:18 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-05-28 23:12:18 +0000 |
commit | 4108f0f169ea680b13b0935ccfb1bc55bca4264a (patch) | |
tree | 625c9b512d3e802d716e1d5b61fd0ad1565c713d /src | |
parent | f4b52fe0de1de7f04c283ca0de5c2207d1aef9b9 (diff) | |
download | scintilla-mirror-4108f0f169ea680b13b0935ccfb1bc55bca4264a.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.cxx | 6 |
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: |