diff options
author | nyamatongwe <unknown> | 2006-07-19 13:34:15 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2006-07-19 13:34:15 +0000 |
commit | 21450c1fe213e76098f71466ff836950f3556dd5 (patch) | |
tree | a051b29507ea547996c121f253644b6de15951d7 | |
parent | 5f62118b5f1f8f957b6d1b2772aef65c9a8784b4 (diff) | |
download | scintilla-mirror-21450c1fe213e76098f71466ff836950f3556dd5.tar.gz |
Fix for bug 1523787.
-rw-r--r-- | src/LexVB.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/LexVB.cxx b/src/LexVB.cxx index d9f028629..0a6a5e4ca 100644 --- a/src/LexVB.cxx +++ b/src/LexVB.cxx @@ -118,20 +118,27 @@ static void ColouriseVBDoc(unsigned int startPos, int length, int initStyle, // VB doubles quotes to preserve them, so just end this string // state now as a following quote will start again if (sc.ch == '\"') { - if (tolower(sc.chNext) == 'c') { + if (sc.chNext == '\"') { sc.Forward(); + } else { + if (tolower(sc.chNext) == 'c') { + sc.Forward(); + } + sc.ForwardSetState(SCE_B_DEFAULT); } - sc.ForwardSetState(SCE_B_DEFAULT); } else if (sc.atLineEnd) { + visibleChars = 0; sc.ChangeState(SCE_B_STRINGEOL); sc.ForwardSetState(SCE_B_DEFAULT); } } else if (sc.state == SCE_B_COMMENT) { if (sc.atLineEnd) { + visibleChars = 0; sc.ForwardSetState(SCE_B_DEFAULT); } } else if (sc.state == SCE_B_PREPROCESSOR) { if (sc.atLineEnd) { + visibleChars = 0; sc.ForwardSetState(SCE_B_DEFAULT); } } else if (sc.state == SCE_B_FILENUMBER) { @@ -157,6 +164,7 @@ static void ColouriseVBDoc(unsigned int startPos, int length, int initStyle, } } else if (sc.state == SCE_B_DATE) { if (sc.atLineEnd) { + visibleChars = 0; sc.ChangeState(SCE_B_STRINGEOL); sc.ForwardSetState(SCE_B_DEFAULT); } else if (sc.ch == '#') { |