aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexLua.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-04-03 03:19:58 +0000
committernyamatongwe <unknown>2005-04-03 03:19:58 +0000
commit245ce35960ee7545a4ede414b73d47c7aaea3f69 (patch)
tree4920e4d3ca060cc0c342a3f4296378b70650f321 /src/LexLua.cxx
parent44c89242df9e52a7b1416268b6f3280c734a3d5c (diff)
downloadscintilla-mirror-245ce35960ee7545a4ede414b73d47c7aaea3f69.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/LexLua.cxx')
-rw-r--r--src/LexLua.cxx6
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 == '\\') {