updates to handle white space within a single line comment

This commit is contained in:
utkarshgautamnyu 2017-09-25 15:55:12 -07:00 committed by GitHub
parent 91dad385a6
commit 209201e592

View file

@ -227,7 +227,7 @@ void JSBaker::handleSingleLineComments(QTextStream * readCharacter) {
QChar character;
while (!readCharacter->atEnd()) {
*readCharacter >> character;
if (character <= '\n')
if (character == '\n')
break;
}
return;