diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/LexVB.cxx | 9 |
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) { |