diff options
author | oirfeodent <unknown> | 2017-08-30 01:34:40 -0700 |
---|---|---|
committer | oirfeodent <unknown> | 2017-08-30 01:34:40 -0700 |
commit | 78c428e40329717e68b4d02d0c1ec6cbb01428cc (patch) | |
tree | eea658bc73c06d5df57d08fdfe68b2d457609f28 | |
parent | 02a2e518d9b34fc1ab34584084e6747947a369fa (diff) | |
download | scintilla-mirror-78c428e40329717e68b4d02d0c1ec6cbb01428cc.tar.gz |
Apply patch set #6385 to LongTerm3 Branch.
The Baan lexer checks that matches to 3rd set of keywords are function calls and leaves as identifiers if not.
Fix issue, where in few cases the lexing needs to be done only for functions.
-rw-r--r-- | lexers/LexBaan.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lexers/LexBaan.cxx b/lexers/LexBaan.cxx index 98ff94a16..8922df1ad 100644 --- a/lexers/LexBaan.cxx +++ b/lexers/LexBaan.cxx @@ -567,7 +567,10 @@ void SCI_METHOD LexerBaan::Lex(Sci_PositionU startPos, Sci_Position length, int sc.ChangeState(SCE_BAAN_WORD2); } else if ((keywords3.kwHasSection && (sc.ch == ':')) ? keywords3.Contains(s1) : keywords3.Contains(s)) { - sc.ChangeState(SCE_BAAN_WORD3); + if (sc.ch == '(') + sc.ChangeState(SCE_BAAN_WORD3); + else + sc.ChangeState(SCE_BAAN_IDENTIFIER); } else if ((keywords4.kwHasSection && (sc.ch == ':')) ? keywords4.Contains(s1) : keywords4.Contains(s)) { sc.ChangeState(SCE_BAAN_WORD4); |