forked from qt-creator/qt-creator
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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user