forked from qt-creator/qt-creator
Qml scanner: Don't emit token for empty line in multi-line comment.
Done-with: Thomas Hartmann
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user