forked from qt-creator/qt-creator
Fixed pre-precessor bug.
When a PP line ended with a \ (join line) and the next line was empty (ending th joining), the following token would be incorrectly marked as joined. Done-with: Roberto Raggi
This commit is contained in:
@@ -180,10 +180,12 @@ void Lexer::scan_helper(Token *tok)
|
||||
{
|
||||
_Lagain:
|
||||
while (_yychar && std::isspace(_yychar)) {
|
||||
if (_yychar == '\n')
|
||||
if (_yychar == '\n') {
|
||||
tok->f.joined = false;
|
||||
tok->f.newline = true;
|
||||
else
|
||||
} else {
|
||||
tok->f.whitespace = true;
|
||||
}
|
||||
yyinp();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user