aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-10-04 07:30:18 +0000
committernyamatongwe <unknown>2001-10-04 07:30:18 +0000
commit9305a7600655fd68d371ef82bbfffe4bacd5d92c (patch)
tree7fcfe70db6f01f13f8671a090e2b9ee9300e1760
parent59bd76b08351c3670deb245758c25485ba4d32fd (diff)
downloadscintilla-mirror-9305a7600655fd68d371ef82bbfffe4bacd5d92c.tar.gz
Fixed comments that use rem rather than '.
-rw-r--r--src/LexVB.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/LexVB.cxx b/src/LexVB.cxx
index c3b0642ff..460543b45 100644
--- a/src/LexVB.cxx
+++ b/src/LexVB.cxx
@@ -52,12 +52,17 @@ static void ColouriseVBDoc(unsigned int startPos, int length, int initStyle,
sc.GetCurrentLowered(s, sizeof(s));
if (keywords.InList(s)) {
if (strcmp(s, "rem") == 0) {
- sc.ChangeState(SCE_C_COMMENTLINE);
+ sc.ChangeState(SCE_B_COMMENT);
+ if (sc.atLineEnd) {
+ sc.SetState(SCE_B_DEFAULT);
+ }
+ } else {
+ sc.SetState(SCE_B_DEFAULT);
}
} else {
sc.ChangeState(SCE_B_IDENTIFIER);
+ sc.SetState(SCE_B_DEFAULT);
}
- sc.SetState(SCE_B_DEFAULT);
}
}
} else if (sc.state == SCE_B_NUMBER) {