Qml scanner: Don't emit token for empty line in multi-line comment.

Done-with: Thomas Hartmann
This commit is contained in:
Christian Kamm
2010-07-08 14:31:07 +02:00
parent db9b630b48
commit a2ae7eae4c

View File

@@ -150,7 +150,7 @@ QList<Token> Scanner::operator()(const QString &text, int startState)
}
}
if (_scanComments)
if (_scanComments && start != -1)
tokens.append(Token(start, index - start, Token::Comment));
}