diff options
| author | Charles Brunet <charles.brunet@optelgroup.com> | 2023-09-15 10:19:02 -0400 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-04-08 10:43:57 -0700 |
| commit | 2b37101998c82b8c4d3985d9b0695be38ec4cf76 (patch) | |
| tree | 1768a7bb40fd5ceab99dd0c10899051049d282ea /test cases/format/1 default/crazy_comments.meson | |
| parent | bd4fd9073081bcc9f4505b9604c5cb1e8cdc300f (diff) | |
| download | meson-2b37101998c82b8c4d3985d9b0695be38ec4cf76.tar.gz | |
meson format command
Diffstat (limited to 'test cases/format/1 default/crazy_comments.meson')
| -rw-r--r-- | test cases/format/1 default/crazy_comments.meson | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test cases/format/1 default/crazy_comments.meson b/test cases/format/1 default/crazy_comments.meson new file mode 100644 index 000000000..f391ca28c --- /dev/null +++ b/test cases/format/1 default/crazy_comments.meson @@ -0,0 +1,47 @@ +# SPDX-FileCopyrightText: Stone Tickle <lattis@mochiro.moe> +# SPDX-License-Identifier: GPL-3.0-only + +project('a') + +if ( + # comment + false # in a weird +) # place! # test +else +endif # test2 + +foreach a : ( + # test 7 + b # test 4 +) # test 6 # test 3 +endforeach +# test 5 + +a = [ + 1, + # inner + 2, # between comma + # between comma 2 +] # trailing + +( + # hello + a() +) +( + # comment 1 + # comment 2 + # comment 3 + a # comment 4 + # comment 5 + # comment 6 + = ( + # comment 7 + 1 # comment 8 + # comment 9 + + 2 # comment 10 + ) # comment 11 + # comment 12 +) # comment 13 + +# trailing comment |
