summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2025-08-01 13:47:46 -0400
committerEli Schwartz <eschwartz93@gmail.com>2025-08-26 01:33:42 -0400
commit01884547172ff0182e34f4d7212913459210cf09 (patch)
tree59118c394688724480a46a3081cbdf43cd954224 /test cases
parent70b0de49f67d326379981334b9c0efa234dcf4f2 (diff)
downloadmeson-01884547172ff0182e34f4d7212913459210cf09.tar.gz
mformat: force multiline arguments with comma
Force multiline arguments when there is a trailing comma. This is the behavior of muon. Fixes #14721.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/format/1 default/indentation.meson8
1 files changed, 8 insertions, 0 deletions
diff --git a/test cases/format/1 default/indentation.meson b/test cases/format/1 default/indentation.meson
index fe78847f7..f18b23072 100644
--- a/test cases/format/1 default/indentation.meson
+++ b/test cases/format/1 default/indentation.meson
@@ -92,3 +92,11 @@ if meson.project_version().version_compare('>1.2')
# comment
endif
endif
+
+# Test for trailing comma:
+m = [1, 2, 3]
+n = [
+ 1,
+ 2,
+ 3,
+]