From 43ff44058d75bec6ad1b8a597fe52009c2bee610 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Wed, 21 Sep 2011 10:18:40 +0200 Subject: [PATCH] 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 --- 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 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; } -- 1.7.2.5