diff options
author | Jiří Techet <techet@gmail.com> | 2015-04-22 11:31:44 +0200 |
---|---|---|
committer | Jiří Techet <techet@gmail.com> | 2015-04-22 11:31:44 +0200 |
commit | 38a428a811612eb7002d2c99cb79f0f1274bc539 (patch) | |
tree | 6f90a6b2b86cd574504369527192fe8ee70f6971 | |
parent | 18c968dd2996572abb33bf92aa4f536907b4a1d3 (diff) | |
download | scintilla-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.
-rw-r--r-- | lexers/LexCPP.cxx | 1 |
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); |