diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2011-09-21 10:18:40 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-21 14:24:57 +0200 |
commit | 43ff44058d75bec6ad1b8a597fe52009c2bee610 (patch) | |
tree | 66d656a349e93defd5a22560d103f4f07472d307 /src/declarative/qml/parser/qdeclarativejslexer.cpp | |
parent | 1b2ab918e792a6f9a3b029890dc075592a49c2ee (diff) |
Fix processing of unary T_MINUS_MINUS tokens after semicolon insertion.
There was a typo in the code, instead of pushing a T_MINUS_MINUS token
the lexer synthesized a T_PLUS_PLUS.
Change-Id: I62dcf263ac363196231fe8f02e98f280899ef85a
Reviewed-on: http://codereview.qt-project.org/5293
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
Diffstat (limited to 'src/declarative/qml/parser/qdeclarativejslexer.cpp')
-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 412746866b..ba4298d3d4 100644 --- a/src/declarative/qml/parser/qdeclarativejslexer.cpp +++ b/src/declarative/qml/parser/qdeclarativejslexer.cpp @@ -474,7 +474,7 @@ again: scanChar(); if (_terminator && !_delimited && !_prohibitAutomaticSemicolon) { - _stackToken = T_PLUS_PLUS; + _stackToken = T_MINUS_MINUS; return T_SEMICOLON; } |