From: Roberto Raggi Date: Wed, 21 Sep 2011 08:18:40 +0000 (+0200) Subject: Fix processing of unary T_MINUS_MINUS tokens after semicolon insertion. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=43ff44058d75bec6ad1b8a597fe52009c2bee610;p=konrad%2Fqtdeclarative.git 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 Reviewed-by: Christian Kamm --- diff --git a/src/declarative/qml/parser/qdeclarativejslexer.cpp b/src/declarative/qml/parser/qdeclarativejslexer.cpp index 4127468..ba4298d 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; }