diff options
author | nyamatongwe <devnull@localhost> | 2005-04-03 03:19:58 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2005-04-03 03:19:58 +0000 |
commit | 32ff556f276a46fe7c8944c7d8d8b1aa793a8b0c (patch) | |
tree | 4920e4d3ca060cc0c342a3f4296378b70650f321 /src | |
parent | c95797d599422a53afab154e5fe15153d4becb96 (diff) | |
download | scintilla-mirror-32ff556f276a46fe7c8944c7d8d8b1aa793a8b0c.tar.gz |
Comment line and preprocessor lines style the end of line characters so
they can have the eolfilled dtyle applied to them.
Diffstat (limited to 'src')
-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 == '\\') { |