aboutsummaryrefslogtreecommitdiffhomepage
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
commit9c5e36390be16a2ea784c5bfcded52c0de3c4693 (patch)
treed37154228ce40b4d8a1550497134cea8dd989fd0
parentec0b24687f9ceac71552c8ed10a478ed1ec9b3dc (diff)
downloadscintilla-mirror-9c5e36390be16a2ea784c5bfcded52c0de3c4693.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.
-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);