diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-08-20 01:29:08 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-09-01 05:54:02 (GMT) |
commit | cddf6992c2a00f894bfa04c68eee8fabbb424b2c (patch) | |
tree | f2fab6cdbd208327770a8cd2736fdda90e07b290 /src | |
parent | 9dd08623cbf15a7f3c36adab613a659be65ee489 (diff) | |
download | Qt-cddf6992c2a00f894bfa04c68eee8fabbb424b2c.zip Qt-cddf6992c2a00f894bfa04c68eee8fabbb424b2c.tar.gz Qt-cddf6992c2a00f894bfa04c68eee8fabbb424b2c.tar.bz2 |
Support for qsTrId and meta-data in comments for QML.
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/qml/parser/qdeclarativejslexer.cpp | 2 |
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; |