diff options
Diffstat (limited to 'src/plugins/scanner')
-rw-r--r-- | src/plugins/scanner/cpp/Lexer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/scanner/cpp/Lexer.cpp b/src/plugins/scanner/cpp/Lexer.cpp index 16556ac73..6bad85c5c 100644 --- a/src/plugins/scanner/cpp/Lexer.cpp +++ b/src/plugins/scanner/cpp/Lexer.cpp @@ -232,7 +232,7 @@ void Lexer::scan_helper(Token *tok) while (_yychar && _yychar != quote) { if (_yychar == '\n') break; - else if (_yychar != '\\') + if (_yychar != '\\') yyinp(); else { yyinp(); // skip `\\' @@ -573,7 +573,8 @@ void Lexer::scan_helper(Token *tok) // const int yylen = _currentChar - yytext; //tok->f.kind = classifyObjCAtKeyword(yytext, yylen); /// ### FIXME break; - } else if (ch == '@' && _yychar == '"') { + } + if (ch == '@' && _yychar == '"') { // objc @string literals ch = _yychar; yyinp(); |