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

Change-Id: Iae9b9f499d3c2c6b3e3cc1be93e2b62508363aec
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
Christian Kamm
2011-11-07 13:16:37 +01:00
parent 386fc347d7
commit 88d480cd61

View File

@@ -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))