diff options
author | nyamatongwe <devnull@localhost> | 2006-07-19 13:34:15 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-07-19 13:34:15 +0000 |
commit | 8a92bbf52655676c861c0a55ff8dfc539f1ede65 (patch) | |
tree | a051b29507ea547996c121f253644b6de15951d7 /src/LexVB.cxx | |
parent | 63cf349097858426ffe3647939a3ddd85263c2b4 (diff) | |
download | scintilla-mirror-8a92bbf52655676c861c0a55ff8dfc539f1ede65.tar.gz |
Fix for bug 1523787.
Diffstat (limited to 'src/LexVB.cxx')
-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 == '#') { |