aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/config_file.se
blob: d7d7036bfbd60b718b148c0853af916e757ff9ff (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
#!/usr/bin/env bash
# vim: set sw=4 sts=4 et ft=sh :

make_enum_LineConfigFileOption()
{
    prefix lcfo

    key lcfo_disallow_continuations     "Do not recognise line continuations"
    key lcfo_disallow_comments          "Do not recognise comments"
    key lcfo_preserve_whitespace        "Preserve exact whitespace"
    key lcfo_no_skip_blank_lines        "Do not skip blank lines"
    key lcfo_allow_inline_comments      "Allow inline comments. \since 0.28"

    doxygen_comment << "END"
        /**
         * Options for a LineConfigFile.
         *
         * \see LineConfigFile
         * \see LineConfigFileOptions
         * \ingroup g_config_file
         */
END
}

make_enum_KeyValueConfigFileOption()
{
    prefix kvcfo

    key kvcfo_disallow_continuations                 "Do not recognise line continuations"
    key kvcfo_disallow_comments                      "Do not recognise comments"
    key kvcfo_disallow_space_around_equals           "Do not allow spaces around equals"
    key kvcfo_disallow_space_inside_unquoted_values  "Do not allow spaces inside unquoted values"
    key kvcfo_disallow_single_quoted_strings         "Do not allow single quoted strings"
    key kvcfo_disallow_double_quoted_strings         "Do not allow double quoted strings"
    key kvcfo_disallow_unquoted_values               "Do not allow unquoted values"
    key kvcfo_disallow_variables                     "Do not allow variable expansions"
    key kvcfo_disallow_source                        "Do not allow the source command"
    key kvcfo_preserve_whitespace                    "Do not strip trailing whitespace from values"
    key kvcfo_ignore_export                          "Accept and ignore the word export at the beginning of a line"
    key kvcfo_allow_inline_comments                  "Allow inline comments. \since 0.28"
    key kvcfo_allow_multiple_assigns_per_line        "Allow A='b' B='c' (and unquoted if kvcfo_disallow_space_inside_unquoted_values). \since 0.28"
    key kvcfo_allow_sections                         "Allow [sections] \since 0.44"
    key kvcfo_allow_fancy_assigns                    "Allow ?= assignments \since 0.54.1"

    doxygen_comment << "END"
        /**
         * Options for a KeyValueConfigFile.
         *
         * \see KeyValueConfigFile
         * \see KeyValueConfigFileOptions
         * \ingroup g_config_file
         */
END
}