Commit 88d480cd authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS checks: Fix // @disable-check at beginning of line.



Change-Id: Iae9b9f499d3c2c6b3e3cc1be93e2b62508363aec
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@nokia.com>
parent 386fc347
......@@ -1203,7 +1203,7 @@ void Check::scanCommentsForAnnotations()
// if the comment is preceded by spaces only, it applies to the next line
// note: startColumn is 1-based and *after* the starting // or /*
if (commentLoc.startColumn > 3) {
if (commentLoc.startColumn >= 3) {
const QString &beforeComment = _doc->source().mid(commentLoc.begin() - commentLoc.startColumn + 1,
commentLoc.startColumn - 3);
if (hasOnlySpaces(beforeComment))
......
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