vendored-meson/meson/test cases/format/4 config/crazy_comments.meson
raw| 1 | # SPDX-FileCopyrightText: Stone Tickle <[email protected]> |
| 2 | # This file is used from muon sources, with permission |
| 3 | |
| 4 | project('a') |
| 5 | |
| 6 | if ( |
| 7 | # comment |
| 8 | false # in a weird |
| 9 | ) # place! # test |
| 10 | else |
| 11 | endif # test2 |
| 12 | |
| 13 | foreach a : ( |
| 14 | # test 7 |
| 15 | b # test 4 |
| 16 | ) # test 6 # test 3 |
| 17 | endforeach |
| 18 | # test 5 |
| 19 | |
| 20 | a = [ |
| 21 | 1, |
| 22 | # inner |
| 23 | 2, # between comma |
| 24 | # between comma 2 |
| 25 | ] # trailing |
| 26 | |
| 27 | ( |
| 28 | # hello |
| 29 | a() |
| 30 | ) |
| 31 | ( |
| 32 | # comment 1 |
| 33 | # comment 2 |
| 34 | # comment 3 |
| 35 | a # comment 4 |
| 36 | # comment 5 |
| 37 | # comment 6 |
| 38 | = ( |
| 39 | # comment 7 |
| 40 | 1 # comment 8 |
| 41 | # comment 9 |
| 42 | + 2 # comment 10 |
| 43 | ) # comment 11 |
| 44 | # comment 12 |
| 45 | ) # comment 13 |
| 46 | |
| 47 | # trailing comment |