From 32ff556f276a46fe7c8944c7d8d8b1aa793a8b0c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 3 Apr 2005 03:19:58 +0000 Subject: Comment line and preprocessor lines style the end of line characters so they can have the eolfilled dtyle applied to them. --- src/LexLua.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 == '\\') { -- cgit v1.2.3