aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexCPP.cxx
diff options
context:
space:
mode:
authorJiří Techet <techet@gmail.com>2015-04-22 11:31:44 +0200
committerJiří Techet <techet@gmail.com>2015-04-22 11:31:44 +0200
commit38a428a811612eb7002d2c99cb79f0f1274bc539 (patch)
tree6f90a6b2b86cd574504369527192fe8ee70f6971 /lexers/LexCPP.cxx
parent18c968dd2996572abb33bf92aa4f536907b4a1d3 (diff)
downloadscintilla-mirror-38a428a811612eb7002d2c99cb79f0f1274bc539.tar.gz
Fix highlighting empty backquote strings (``) in cpp lexer
The sc.Forward() is performed once more at the end of the function and performing it here causes the second ` is skipped in ``. Probably caused by copy-pasting the code above and not realizing this one reads just a single character.
Diffstat (limited to 'lexers/LexCPP.cxx')
-rw-r--r--lexers/LexCPP.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
index ab982bb4b..33e7a5608 100644
--- a/lexers/LexCPP.cxx
+++ b/lexers/LexCPP.cxx
@@ -1092,7 +1092,6 @@ void SCI_METHOD LexerCPP::Lex(unsigned int startPos, int length, int initStyle,
} else if (options.backQuotedStrings && sc.Match('`')) {
sc.SetState(SCE_C_STRINGRAW|activitySet);
rawStringTerminator = "`";
- sc.Forward();
} else if (IsADigit(sc.ch) || (sc.ch == '.' && IsADigit(sc.chNext))) {
if (lastWordWasUUID) {
sc.SetState(SCE_C_UUID|activitySet);