Commit a2ae7eae authored by Christian Kamm's avatar Christian Kamm
Browse files

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

Done-with: Thomas Hartmann
parent db9b630b
......@@ -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));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment