summaryrefslogtreecommitdiff
path: root/test cases/format/2 muon/indentation.meson
blob: 8f891d57cebfbf538a27a7ba626c64c46e3b276c (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
project(
    'indentation',
    default_options: {
        'buildtype': 'release',
        'default_library': 'shared',
        'prefer_static': false,
        'unity': 'off',
    },
    meson_version: '>= 1.5.0',
    version: '1.2.3',
)

a = [
    1,
    2,
    3,
    [
        4,
        5,
        6,
        [
            7,
            8,
            9,
            [
                10, # 10
                11, # 11
                12, # 12
            ],
            13,
            14,
            15,
        ],
    ],
]
d = {}

if meson.project_version().version_compare('>1.2')
    if meson.version().version_compare('>1.0')
        foreach i : a
            e = {
                'a': 'a',
                'b': 'b',
                'c': 'c',
                'd': [
                    1,
                    2,
                    3,
                    {
                        'e': 'e',
                        'f': 'f',
                        'g': 'g',
                        'h': {
                            'i': (
                                # a
                                1 # b
                                # c
                                + 2
                            ),
                            'j': [
                                1, # 1
                                2, # 2
                                3, # 3
                            ],
                        },
                    },
                ],
            }
        endforeach
    endif
endif