summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-08-20 01:29:08 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-09-01 05:54:02 (GMT)
commitcddf6992c2a00f894bfa04c68eee8fabbb424b2c (patch)
treef2fab6cdbd208327770a8cd2736fdda90e07b290 /src/declarative
parent9dd08623cbf15a7f3c36adab613a659be65ee489 (diff)
downloadQt-cddf6992c2a00f894bfa04c68eee8fabbb424b2c.zip
Qt-cddf6992c2a00f894bfa04c68eee8fabbb424b2c.tar.gz
Qt-cddf6992c2a00f894bfa04c68eee8fabbb424b2c.tar.bz2
Support for qsTrId and meta-data in comments for QML.
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/parser/qdeclarativejslexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/parser/qdeclarativejslexer.cpp b/src/declarative/qml/parser/qdeclarativejslexer.cpp
index cd08658..9024d50 100644
--- a/src/declarative/qml/parser/qdeclarativejslexer.cpp
+++ b/src/declarative/qml/parser/qdeclarativejslexer.cpp
@@ -696,7 +696,7 @@ int Lexer::lex()
} else if (current == '*' && next1 == '/') {
state = Start;
shift(1);
- if (driver) driver->addComment(startpos, tokenLength(), startlineno, startcolumn);
+ if (driver) driver->addComment(startpos, tokenLength()+1, startlineno, startcolumn);
}
break;