diff options
Diffstat (limited to 'src/LexLua.cxx')
-rw-r--r-- | src/LexLua.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LexLua.cxx b/src/LexLua.cxx index d3f80ada2..2ead7c09d 100644 --- a/src/LexLua.cxx +++ b/src/LexLua.cxx @@ -83,7 +83,7 @@ static void ColouriseLuaDoc( } // Do not leak onto next line - if (initStyle == SCE_LUA_STRINGEOL) { + if (initStyle == SCE_LUA_STRINGEOL || initStyle == SCE_LUA_COMMENTLINE) { initStyle = SCE_LUA_DEFAULT; } @@ -163,11 +163,11 @@ static void ColouriseLuaDoc( } } else if (sc.state == SCE_LUA_COMMENTLINE ) { if (sc.atLineEnd) { - sc.SetState(SCE_LUA_DEFAULT); + sc.ForwardSetState(SCE_LUA_DEFAULT); } } else if (sc.state == SCE_LUA_PREPROCESSOR ) { if (sc.atLineEnd) { - sc.SetState(SCE_LUA_DEFAULT); + sc.ForwardSetState(SCE_LUA_DEFAULT); } } else if (sc.state == SCE_LUA_STRING) { if (sc.ch == '\\') { |