Fix processing of unary T_MINUS_MINUS tokens after semicolon insertion.
authorRoberto Raggi <roberto.raggi@nokia.com>
Wed, 21 Sep 2011 08:18:40 +0000 (10:18 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 21 Sep 2011 12:24:57 +0000 (14:24 +0200)
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>
src/declarative/qml/parser/qdeclarativejslexer.cpp

index 4127468..ba4298d 100644 (file)
@@ -474,7 +474,7 @@ again:
             scanChar();
 
             if (_terminator && !_delimited && !_prohibitAutomaticSemicolon) {
-                _stackToken = T_PLUS_PLUS;
+                _stackToken = T_MINUS_MINUS;
                 return T_SEMICOLON;
             }