summaryrefslogtreecommitdiff
path: root/test cases/format/1 default/crazy_comments.meson
blob: f7ed67101bfdd647b1955778e59948c163554994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# SPDX-FileCopyrightText: Stone Tickle <lattis@mochiro.moe>
# This file is used from muon sources, with permission

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