aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlformat
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi@gmx.ch>2021-09-14 16:22:57 +0200
committerFawzi Mohamed <fawzi@gmx.ch>2021-09-17 16:43:22 +0200
commit1d439e0abe07d232b24cdde6166b20eff4070bc6 (patch)
treec05aef92fa47db036b7254f25d6825307cd0d318 /tests/auto/qml/qmlformat
parent9fe33048e1a25ff1dd7d4006202fdd76eb9fa5b9 (diff)
fix handling of arrow functions
* correctly set lbraceToken in all cases (there was a wrong index in the grammar) * avoid semicolon for "virtual" return statements of arrow functions Change-Id: I2966558c835fdc74ecfb4d31e001a22dda385912 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlformat')
-rw-r--r--tests/auto/qml/qmlformat/data/arrowFunctions.formatted.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/qmlformat/data/arrowFunctions.formatted.qml b/tests/auto/qml/qmlformat/data/arrowFunctions.formatted.qml
index b9b3fdf319..142a6fe36a 100644
--- a/tests/auto/qml/qmlformat/data/arrowFunctions.formatted.qml
+++ b/tests/auto/qml/qmlformat/data/arrowFunctions.formatted.qml
@@ -1,5 +1,5 @@
Item {
- arrow1: x => x;
- arrow2: x => x + x;
- arrow3: () => x > 3 ? x * x : x;
+ arrow1: x => x
+ arrow2: x => x + x
+ arrow3: () => x > 3 ? x * x : x
}