Fix automatic semicolon insertion before ++/-- operators.
authorErik Verbruggen <erik.verbruggen@me.com>
Thu, 10 Jan 2013 10:43:11 +0000 (11:43 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 11 Jan 2013 11:34:56 +0000 (12:34 +0100)
commit5558c55de88b42ecb8a1016e1544bae4104a24fd
treebd53b4b1049547f8bdf4c3fd35170e7df72650e6
parent4dbbaf6814d327ec4b182325a8bab59314cfaf23
Fix automatic semicolon insertion before ++/-- operators.

Also move the tilde token from isBinop to the lex method, because it is
not a binop, but should still be delimited.

Change-Id: I532260f4f3ebdde2d38128b41d11bce5a113d1f1
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/parser/qqmljslexer.cpp
tests/auto/qml/qmlmin/tst_qmlmin.cpp
tests/auto/qml/qqmlecmascript/data/incrDecrSemicolon_error1.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp