| 1 |
|
| 2 |
(macro_expansion_call |
| 3 |
(builtin) @function.macro) |
| 4 |
|
| 5 |
(macro_expansion_call |
| 6 |
(identifier) @function.macro) |
| 7 |
|
| 8 |
(macro_expansion_call |
| 9 |
option: (macro_option) @variable.parameter |
| 10 |
argument: [ |
| 11 |
(word) @variable.parameter |
| 12 |
(concatenation |
| 13 |
(word) @variable.parameter) |
| 14 |
(macro_expansion) @function |
| 15 |
(macro_simple_expansion) @function |
| 16 |
]) |
| 17 |
|
| 18 |
|
| 19 |
(macro_option) @variable.parameter |
| 20 |
|
| 21 |
|
| 22 |
(macro_expansion |
| 23 |
(builtin) @variable.builtin |
| 24 |
argument: (_) @variable.parameter) |
| 25 |
|
| 26 |
(macro_expansion |
| 27 |
(identifier) @function |
| 28 |
argument: [ |
| 29 |
(word) @variable.parameter |
| 30 |
(concatenation |
| 31 |
(word) @variable.parameter) |
| 32 |
]) |
| 33 |
|
| 34 |
|
| 35 |
(macro_definition |
| 36 |
"%" @punctuation.special |
| 37 |
(builtin) @keyword.directive.define |
| 38 |
(identifier) @keyword.macro) |
| 39 |
(macro_undefinition |
| 40 |
(builtin) @keyword.directive.define |
| 41 |
(identifier) @keyword.macro) |
| 42 |
|
| 43 |
|
| 44 |
(macro_simple_expansion |
| 45 |
"%" @punctuation.special) @none |
| 46 |
(macro_expansion |
| 47 |
"%{" @punctuation.special |
| 48 |
"}" @punctuation.special) @none |
| 49 |
|
| 50 |
|
| 51 |
(special_variable_name) @constant |
| 52 |
(builtin) @variable.builtin |
| 53 |
|
| 54 |
(setup_macro |
| 55 |
argument: [ |
| 56 |
(setup_flag) @variable.parameter |
| 57 |
(setup_source_option) @variable.parameter |
| 58 |
((setup_name_option |
| 59 |
directory: (_) @string) @variable.parameter) |
| 60 |
]) |
| 61 |
|
| 62 |
(patch_macro |
| 63 |
[ |
| 64 |
(patch_flag) @variable.parameter |
| 65 |
(patch_number_option) @variable.parameter |
| 66 |
(patch_string_option) @variable.parameter |
| 67 |
(patch_long_option) @variable.parameter |
| 68 |
]) |
| 69 |
|
| 70 |
[ |
| 71 |
(tag) |
| 72 |
(dependency_tag) |
| 73 |
] @type.definition |
| 74 |
|
| 75 |
(integer) @constant.numeric.integer |
| 76 |
(float) @constant.numeric.float |
| 77 |
(version) @constant.numeric.float |
| 78 |
|
| 79 |
(comment) @comment |
| 80 |
|
| 81 |
(quoted_string) @string |
| 82 |
|
| 83 |
(description |
| 84 |
(section_name) @type.definition) |
| 85 |
(package |
| 86 |
(section_name) @type.definition) |
| 87 |
(files |
| 88 |
(section_name) @type.definition) |
| 89 |
(changelog |
| 90 |
(section_name) @type.definition) |
| 91 |
|
| 92 |
(prep_scriptlet |
| 93 |
(section_name) @function.builtin) |
| 94 |
(generate_buildrequires |
| 95 |
(section_name) @function.builtin) |
| 96 |
(conf_scriptlet |
| 97 |
(section_name) @function.builtin) |
| 98 |
(build_scriptlet |
| 99 |
(section_name) @function.builtin) |
| 100 |
(install_scriptlet |
| 101 |
(section_name) @function.builtin) |
| 102 |
(check_scriptlet |
| 103 |
(section_name) @function.builtin) |
| 104 |
(clean_scriptlet |
| 105 |
(section_name) @function.builtin) |
| 106 |
|
| 107 |
[ |
| 108 |
"%pre" |
| 109 |
"%post" |
| 110 |
"%preun" |
| 111 |
"%postun" |
| 112 |
"%pretrans" |
| 113 |
"%posttrans" |
| 114 |
"%preuntrans" |
| 115 |
"%postuntrans" |
| 116 |
"%verify" |
| 117 |
] @function.builtin |
| 118 |
|
| 119 |
[ |
| 120 |
"%triggerprein" |
| 121 |
"%triggerin" |
| 122 |
"%triggerun" |
| 123 |
"%triggerpostun" |
| 124 |
] @function.builtin |
| 125 |
|
| 126 |
[ |
| 127 |
"%filetriggerin" |
| 128 |
"%filetriggerun" |
| 129 |
"%filetriggerpostun" |
| 130 |
"%transfiletriggerin" |
| 131 |
"%transfiletriggerun" |
| 132 |
"%transfiletriggerpostun" |
| 133 |
] @function.builtin |
| 134 |
|
| 135 |
[ |
| 136 |
"%artifact" |
| 137 |
"%attr" |
| 138 |
"%config" |
| 139 |
"%dir" |
| 140 |
"%doc" |
| 141 |
"%docdir" |
| 142 |
"%ghost" |
| 143 |
"%license" |
| 144 |
"%missingok" |
| 145 |
"%readme" |
| 146 |
] @keyword.type |
| 147 |
|
| 148 |
[ |
| 149 |
"!=" |
| 150 |
"<" |
| 151 |
"<=" |
| 152 |
"==" |
| 153 |
">" |
| 154 |
">=" |
| 155 |
"and" |
| 156 |
"&&" |
| 157 |
"or" |
| 158 |
"||" |
| 159 |
] @operator |
| 160 |
|
| 161 |
[ |
| 162 |
"with" |
| 163 |
"without" |
| 164 |
"defined" |
| 165 |
"undefined" |
| 166 |
] @keyword.operator |
| 167 |
|
| 168 |
[ |
| 169 |
"%if" |
| 170 |
"%ifarch" |
| 171 |
"%ifos" |
| 172 |
"%ifnarch" |
| 173 |
"%ifnos" |
| 174 |
"%elif" |
| 175 |
"%elifarch" |
| 176 |
"%elifos" |
| 177 |
"%else" |
| 178 |
"%endif" |
| 179 |
] @keyword.control.conditional |
| 180 |
|
| 181 |
|
| 182 |
|