diff options
author | Erik Verbruggen <erik.verbruggen@me.com> | 2013-01-10 11:43:11 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-11 12:34:56 +0100 |
commit | 5558c55de88b42ecb8a1016e1544bae4104a24fd (patch) | |
tree | bd53b4b1049547f8bdf4c3fd35170e7df72650e6 /tests/auto/qml/qqmlecmascript/data/incrDecrSemicolon_error1.qml | |
parent | 4dbbaf6814d327ec4b182325a8bab59314cfaf23 (diff) |
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>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/incrDecrSemicolon_error1.qml')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/data/incrDecrSemicolon_error1.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/incrDecrSemicolon_error1.qml b/tests/auto/qml/qqmlecmascript/data/incrDecrSemicolon_error1.qml new file mode 100644 index 0000000000..710729cbfe --- /dev/null +++ b/tests/auto/qml/qqmlecmascript/data/incrDecrSemicolon_error1.qml @@ -0,0 +1,19 @@ +import QtQuick 2.0 + +QtObject { + + // PLEASE NOTE: the function below is whitespace and newline sensitive, + // because that is what the test is all about. + // + // So: DO NOT REFORMAT THE CODE BELOW! + + function code() { +var x=0, y=0; +var z= +x +++ +++ +y + } +} + |