diff options
author | nyamatongwe <unknown> | 2008-09-06 11:09:17 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2008-09-06 11:09:17 +0000 |
commit | 5ad22ab24f16469b2ed331f86f7c83fa70964931 (patch) | |
tree | 0601610150009c874cd882931bfab8bb6df52add | |
parent | 4f461745849c0906e742c3b6afa8a36aeb4493b3 (diff) | |
download | scintilla-mirror-5ad22ab24f16469b2ed331f86f7c83fa70964931.tar.gz |
Patch from Jason Oster ensure keywords highlighted at end of text.
-rw-r--r-- | src/LexLua.cxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/LexLua.cxx b/src/LexLua.cxx index 90a35bc8e..a1e579f26 100644 --- a/src/LexLua.cxx +++ b/src/LexLua.cxx @@ -243,6 +243,29 @@ static void ColouriseLuaDoc( } } } + + if (setWord.Contains(sc.chPrev)) { + char s[100]; + sc.GetCurrent(s, sizeof(s)); + if (keywords.InList(s)) { + sc.ChangeState(SCE_LUA_WORD); + } else if (keywords2.InList(s)) { + sc.ChangeState(SCE_LUA_WORD2); + } else if (keywords3.InList(s)) { + sc.ChangeState(SCE_LUA_WORD3); + } else if (keywords4.InList(s)) { + sc.ChangeState(SCE_LUA_WORD4); + } else if (keywords5.InList(s)) { + sc.ChangeState(SCE_LUA_WORD5); + } else if (keywords6.InList(s)) { + sc.ChangeState(SCE_LUA_WORD6); + } else if (keywords7.InList(s)) { + sc.ChangeState(SCE_LUA_WORD7); + } else if (keywords8.InList(s)) { + sc.ChangeState(SCE_LUA_WORD8); + } + } + sc.Complete(); } |