| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language SYSTEM "language.dtd" |
| 3 |
[ |
| 4 |
<!-- NOTE See https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#variable-references --> |
| 5 |
<!ENTITY var_ref_re "[/\.\+\-_0-9A-Za-z]+"> |
| 6 |
<!-- NOTE See `cmGeneratorExpression::IsValidTargetName` --> |
| 7 |
<!ENTITY tgt_name_re "[A-Za-z0-9_\.\+\-]+"> |
| 8 |
]> |
| 9 |
<!-- |
| 10 |
This file is part of KDE's kate project. |
| 11 |
|
| 12 |
SPDX-FileCopyrightText: 2004 Alexander Neundorf <[email protected]> |
| 13 |
SPDX-FileCopyrightText: 2005 Dominik Haumann <[email protected]> |
| 14 |
SPDX-FileCopyrightText: 2007, 2008, 2013, 2014 Matthew Woehlke <[email protected]> |
| 15 |
SPDX-FileCopyrightText: 2013-2015, 2017-2020 Alex Turbov <[email protected]> |
| 16 |
|
| 17 |
SPDX-License-Identifier: LGPL-2.0-or-later |
| 18 |
--> |
| 19 |
|
| 20 |
<!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT ***** |
| 21 |
cd data/generators |
| 22 |
# increase version of cmake.xml.tpl then |
| 23 |
./generate-cmake-syntax.py cmake.yaml > ../syntax/cmake.xml |
| 24 |
--> |
| 25 |
|
| 26 |
<language |
| 27 |
name="CMake" |
| 28 |
version="<!--{version}-->" |
| 29 |
kateversion="5.0" |
| 30 |
section="Other" |
| 31 |
extensions="CMakeLists.txt;*.cmake;*.cmake.in" |
| 32 |
style="CMake" |
| 33 |
mimetype="text/x-cmake" |
| 34 |
author="Alex Turbov ([email protected])" |
| 35 |
license="LGPLv2+" |
| 36 |
> |
| 37 |
<highlighting> |
| 38 |
|
| 39 |
<list name="commands"> |
| 40 |
<!--[- for command in commands ]--> |
| 41 |
<item><!--{command.name}--></item> |
| 42 |
<!--[- endfor ]--> |
| 43 |
</list> |
| 44 |
|
| 45 |
<!--[- macro render_command_arg_lists(commands) ]--> |
| 46 |
<!--[- for command in commands -]--> |
| 47 |
<!--[- if command.named_args and command.named_args.kw ]--> |
| 48 |
<list name="<!--{command.name}-->_nargs"> |
| 49 |
<!--[- for arg in command.named_args.kw ]--> |
| 50 |
<item><!--{arg}--></item> |
| 51 |
<!--[- endfor ]--> |
| 52 |
</list> |
| 53 |
<!--[- endif ]--> |
| 54 |
<!--[- if command.special_args and command.special_args.kw ]--> |
| 55 |
<list name="<!--{command.name}-->_sargs"> |
| 56 |
<!--[- for arg in command.special_args.kw ]--> |
| 57 |
<item><!--{arg}--></item> |
| 58 |
<!--[- endfor ]--> |
| 59 |
</list> |
| 60 |
<!--[- endif ]--> |
| 61 |
<!--[- endfor ]--> |
| 62 |
<!--[- endmacro ]--> |
| 63 |
<!--{- render_command_arg_lists(commands) }--> |
| 64 |
<!--{- render_command_arg_lists(standard_module_commands) }--> |
| 65 |
|
| 66 |
<list name="variables"> |
| 67 |
<!--[- for var in variables.kw ]--> |
| 68 |
<item><!--{var}--></item> |
| 69 |
<!--[- endfor ]--> |
| 70 |
</list> |
| 71 |
|
| 72 |
<list name="deprecated-or-internal-variables"> |
| 73 |
<!--[- for var in deprecated_or_internal_variables.kw ]--> |
| 74 |
<item><!--{var}--></item> |
| 75 |
<!--[- endfor ]--> |
| 76 |
</list> |
| 77 |
|
| 78 |
<list name="environment-variables"> |
| 79 |
<!--[- for var in environment_variables.kw ]--> |
| 80 |
<item><!--{var}--></item> |
| 81 |
<!--[- endfor ]--> |
| 82 |
</list> |
| 83 |
|
| 84 |
<!--[- for kind in properties.kinds ]--> |
| 85 |
<list name="<!--{ kind|replace('_', '-') }-->"> |
| 86 |
<!--[- for prop in properties[kind].kw ]--> |
| 87 |
<item><!--{prop}--></item> |
| 88 |
<!--[- endfor ]--> |
| 89 |
</list> |
| 90 |
<!--[- endfor ]--> |
| 91 |
|
| 92 |
<list name="generator-expressions"> |
| 93 |
<!--[- for expr in generator_expressions ]--> |
| 94 |
<item><!--{ expr }--></item> |
| 95 |
<!--[- endfor ]--> |
| 96 |
</list> |
| 97 |
|
| 98 |
<list name="standard-modules"> |
| 99 |
<!--[- for module in modules.utility ]--> |
| 100 |
<item><!--{ module }--></item> |
| 101 |
<!--[- endfor ]--> |
| 102 |
</list> |
| 103 |
|
| 104 |
<list name="standard-finder-modules"> |
| 105 |
<!--[- for module in modules.finder ]--> |
| 106 |
<item><!--{ module | replace('Find', '') }--></item> |
| 107 |
<!--[- endfor ]--> |
| 108 |
</list> |
| 109 |
|
| 110 |
<list name="deprecated-modules"> |
| 111 |
<!--[- for module in modules.deprecated ]--> |
| 112 |
<item><!--{ module }--></item> |
| 113 |
<!--[- endfor ]--> |
| 114 |
</list> |
| 115 |
|
| 116 |
<!-- Source/cmStringAlgorithms.cxx: bool cmIsOff(cm::string_view val) --> |
| 117 |
<list name="true_special_arg"> |
| 118 |
<item>TRUE</item> |
| 119 |
<item>ON</item> |
| 120 |
<item>YES</item> |
| 121 |
<item>Y</item> |
| 122 |
<item>0</item> |
| 123 |
</list> |
| 124 |
|
| 125 |
<!-- Source/cmStringAlgorithms.cxx: bool cmIsOff(cm::string_view val) --> |
| 126 |
<list name="false_special_arg"> |
| 127 |
<item>FALSE</item> |
| 128 |
<item>OFF</item> |
| 129 |
<item>NO</item> |
| 130 |
<item>IGNORE</item> |
| 131 |
<item>N</item> |
| 132 |
<item>0</item> |
| 133 |
</list> |
| 134 |
|
| 135 |
<contexts> |
| 136 |
|
| 137 |
<context attribute="Normal Text" lineEndContext="#stay" name="Normal Text"> |
| 138 |
<DetectSpaces/> |
| 139 |
<!--[ for command in commands -]--> |
| 140 |
<WordDetect String="<!--{command.name}-->" insensitive="true" attribute="<!--{command.attribute}-->" context="<!--{command.name}-->_ctx"<!--[ if command.start_region ]--> beginRegion="<!--{command.start_region}-->"<!--[ endif -]--> <!--[- if command.end_region ]--> endRegion="<!--{command.end_region}-->"<!--[ endif ]--> /> |
| 141 |
<!--[ endfor -]--> |
| 142 |
<!--[ for command in standard_module_commands -]--> |
| 143 |
<WordDetect String="<!--{command.name}-->" insensitive="true" attribute="CMake Provided Function/Macro" context="<!--{command.name}-->_ctx" /> |
| 144 |
<!--[ endfor -]--> |
| 145 |
<DetectChar attribute="Comment" context="Match Comments and Docs" char="#" lookAhead="true" /> |
| 146 |
<DetectIdentifier attribute="User Function/Macro" context="User Function" /> |
| 147 |
<RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&var_ref_re;@" lookAhead="true" /> |
| 148 |
<IncludeRules context="LineError" /> |
| 149 |
</context> |
| 150 |
<!--[- macro render_command_parsers(commands) ]--> |
| 151 |
<!--[ for command in commands -]--> |
| 152 |
<context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_ctx"> |
| 153 |
<DetectChar attribute="Normal Text" context="<!--{command.name}-->_ctx_op<!--{'_tgt_first' if command.first_arg_is_target else '_tgts_first' if command.first_args_are_targets else ''}-->" char="(" /> |
| 154 |
<DetectChar attribute="Normal Text" context="#pop" char=")" /> |
| 155 |
</context> |
| 156 |
<!--[- if command.first_arg_is_target ]--> |
| 157 |
<context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_ctx_op_tgt_first"> |
| 158 |
<DetectSpaces /> |
| 159 |
<RegExpr attribute="Aliased Targets" context="<!--{command.name}-->_ctx_op" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*" /> |
| 160 |
<RegExpr attribute="Targets" context="<!--{command.name}-->_ctx_op" String="&tgt_name_re;" /> |
| 161 |
<IncludeRules context="User Function Opened" /> |
| 162 |
<IncludeRules context="LineError" /> |
| 163 |
</context> |
| 164 |
<!--[- endif ]--> |
| 165 |
<!--[- if command.first_args_are_targets ]--> |
| 166 |
<context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_ctx_op_tgts_first"> |
| 167 |
<DetectSpaces /> |
| 168 |
<!--[- if command.named_args and command.named_args.kw ]--> |
| 169 |
<!-- NOTE Handle the only case in CMake nowadays: |
| 170 |
1. `set_target_properties` have a named keyword (`PROPERTIES`) after targets list |
| 171 |
--> |
| 172 |
<keyword context="<!--{command.name}-->_ctx_op" String="<!--{command.name}-->_nargs" lookAhead="true" /> |
| 173 |
<!--[- endif ]--> |
| 174 |
<IncludeRules context="Detect Aliased Targets" /> |
| 175 |
<IncludeRules context="Detect Targets" /> |
| 176 |
<IncludeRules context="User Function Opened" /> |
| 177 |
<IncludeRules context="LineError" /> |
| 178 |
</context> |
| 179 |
<!--[- endif ]--> |
| 180 |
<!--[- if not command.first_args_are_targets or (command.named_args and command.named_args.kw) ]--> |
| 181 |
<context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_ctx_op"> |
| 182 |
<DetectSpaces /> |
| 183 |
<!--[- if command.nested_parentheses ]--> |
| 184 |
<DetectChar attribute="Normal Text" context="<!--{command.name}-->_ctx_op_nested" char="(" /> |
| 185 |
<!--[- endif ]--> |
| 186 |
<DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true" /> |
| 187 |
<!--[- if command.named_args and command.named_args.kw ]--> |
| 188 |
<!--[- if command.has_target_name_after_kw ]--> |
| 189 |
<WordDetect String="<!--{command.has_target_name_after_kw}-->" attribute="Named Args" context="Target Name" /> |
| 190 |
<!--[- endif ]--> |
| 191 |
<!--[- if command.has_target_names_after_kw ]--> |
| 192 |
<WordDetect String="<!--{command.has_target_names_after_kw}-->" attribute="Named Args" context="<!--{command.name}-->_tgts" /> |
| 193 |
<!--[- endif ]--> |
| 194 |
<keyword attribute="Named Args" context="#stay" String="<!--{command.name}-->_nargs" /> |
| 195 |
<!--[- endif ]--> |
| 196 |
<!--[- if command.name == 'include' ]--> |
| 197 |
<keyword attribute="Standard Module" context="#stay" String="standard-modules" /> |
| 198 |
<keyword attribute="Deprecated Module" context="#stay" String="deprecated-modules" /> |
| 199 |
<!--[- endif ]--> |
| 200 |
<!--[- if command.name == 'find_package' ]--> |
| 201 |
<keyword attribute="Standard Module" context="#stay" String="standard-finder-modules" /> |
| 202 |
<!--[- endif ]--> |
| 203 |
<!--[- if command.special_args and command.special_args.kw ]--> |
| 204 |
<keyword attribute="Special Args" context="#stay" String="<!--{command.name}-->_sargs" /> |
| 205 |
<!--[- endif ]--> |
| 206 |
<!--[- if command.property_args and command.property_args.kw ]--> |
| 207 |
<!--[- for kind in command.property_args.kw ]--> |
| 208 |
<keyword attribute="Property" context="#stay" String="<!--{kind}-->" /> |
| 209 |
<!--[- if properties[kind|replace('-', '_')].re ]--> |
| 210 |
<IncludeRules context="Detect More <!--{kind}-->" /> |
| 211 |
<!--[- endif ]--> |
| 212 |
<!--[- endfor ]--> |
| 213 |
<!--[- endif ]--> |
| 214 |
<!--[- if command is not nulary ]--> |
| 215 |
<IncludeRules context="User Function Args" /> |
| 216 |
<!--[- if command.name == 'cmake_policy' ]--> |
| 217 |
<!-- NOTE Handle CMP<NNN> as a special arg of `cmake_policy` command --> |
| 218 |
<RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9]+\b" /> |
| 219 |
<!--[- endif ]--> |
| 220 |
<!--[- endif ]--> |
| 221 |
</context> |
| 222 |
<!--[- endif ]--> |
| 223 |
<!--[- if command.has_target_names_after_kw ]--> |
| 224 |
<context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_tgts"> |
| 225 |
<DetectSpaces /> |
| 226 |
<DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true" /> |
| 227 |
<keyword attribute="Named Args" context="#pop" String="<!--{command.name}-->_nargs" /> |
| 228 |
<IncludeRules context="Detect Aliased Targets" /> |
| 229 |
<IncludeRules context="Detect Targets" /> |
| 230 |
<IncludeRules context="User Function Args" /> |
| 231 |
<IncludeRules context="LineError" /> |
| 232 |
</context> |
| 233 |
<!--[- endif ]--> |
| 234 |
<!--[- if command.nested_parentheses ]--> |
| 235 |
<context attribute="Normal Text" lineEndContext="#stay" name="<!--{command.name}-->_ctx_op_nested"> |
| 236 |
<DetectSpaces /> |
| 237 |
<DetectChar attribute="Normal Text" context="#pop" char=")" /> |
| 238 |
<DetectChar attribute="Normal Text" context="<!--{command.name}-->_ctx_op_nested" char="(" /> |
| 239 |
<!--[- if command.named_args and command.named_args.kw ]--> |
| 240 |
<keyword attribute="Named Args" context="#stay" String="<!--{command.name}-->_nargs" /> |
| 241 |
<!--[- endif ]--> |
| 242 |
<!--[- if command.special_args and command.special_args.kw ]--> |
| 243 |
<keyword attribute="Special Args" context="#stay" String="<!--{command.name}-->_sargs" /> |
| 244 |
<!--[- endif ]--> |
| 245 |
<!--[- if command.property_args and command.property_args.kw ]--> |
| 246 |
<!--[- for kind in command.property_args.kw ]--> |
| 247 |
<keyword attribute="Property" context="#stay" String="<!--{kind}-->" /> |
| 248 |
<!--[- if properties[kind|replace('-', '_')].re ]--> |
| 249 |
<IncludeRules context="Detect More <!--{kind}-->" /> |
| 250 |
<!--[- endif ]--> |
| 251 |
<!--[- endfor ]--> |
| 252 |
<!--[- endif ]--> |
| 253 |
<IncludeRules context="User Function Args" /> |
| 254 |
</context> |
| 255 |
<!--[- endif ]--> |
| 256 |
<!--[ endfor -]--> |
| 257 |
<!--[- endmacro -]--> |
| 258 |
<!--{- render_command_parsers(commands) -}--> |
| 259 |
<!--{- render_command_parsers(standard_module_commands) -}--> |
| 260 |
<!--[ for kind in properties.kinds if properties[kind].re -]--> |
| 261 |
<context attribute="Normal Text" lineEndContext="#stay" name="Detect More <!--{ kind|replace('_', '-') }-->"> |
| 262 |
<RegExpr attribute="Property" context="#stay" String="<!--{properties[kind].re}-->" /> |
| 263 |
</context><!--{ '\n' }--> |
| 264 |
<!--[ endfor -]--> |
| 265 |
|
| 266 |
<context attribute="User Function/Macro" lineEndContext="#stay" name="User Function"> |
| 267 |
<DetectChar attribute="Normal Text" context="User Function Opened" char="(" /> |
| 268 |
<DetectChar attribute="Normal Text" context="#pop" char=")" /> |
| 269 |
</context> |
| 270 |
|
| 271 |
<context attribute="Normal Text" lineEndContext="#stay" name="User Function Opened"> |
| 272 |
<DetectChar attribute="Normal Text" context="#pop" char=")" lookAhead="true" /> |
| 273 |
<IncludeRules context="User Function Args" /> |
| 274 |
</context> |
| 275 |
|
| 276 |
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Builtin Variables"> |
| 277 |
<RegExpr attribute="Internal Name" context="#stay" String="\b_&var_ref_re;\b" /> |
| 278 |
<keyword attribute="CMake Internal Variable" context="#stay" String="deprecated-or-internal-variables" insensitive="false" /> |
| 279 |
<keyword attribute="Builtin Variable" context="#stay" String="variables" insensitive="false" /> |
| 280 |
<IncludeRules context="Detect More Builtin Variables" /> |
| 281 |
</context> |
| 282 |
|
| 283 |
<context attribute="Normal Text" lineEndContext="#stay" name="Detect More Builtin Variables"> |
| 284 |
<!--[- if deprecated_or_internal_variables.re ]--> |
| 285 |
<RegExpr attribute="CMake Internal Variable" context="#stay" String="<!--{deprecated_or_internal_variables.re}-->" /> |
| 286 |
<!--[- endif ]--> |
| 287 |
<!--[- if variables.re ]--> |
| 288 |
<RegExpr attribute="Builtin Variable" context="#stay" String="<!--{variables.re}-->" /> |
| 289 |
<!--[- endif ]--> |
| 290 |
</context> |
| 291 |
|
| 292 |
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Variable Substitutions"> |
| 293 |
<RegExpr attribute="Cache Variable Substitution" context="#stay" String="\$CACHE\{\s*[\w-]+\s*\}" /> |
| 294 |
<RegExpr attribute="Environment Variable Substitution" context="EnvVarSubst" String="\$?ENV\{" /> |
| 295 |
<Detect2Chars attribute="Variable Substitution" context="VarSubst" char="$" char1="{" /> |
| 296 |
<RegExpr attribute="@Variable Substitution" context="@VarSubst" String="@&var_ref_re;@" lookAhead="true" /> |
| 297 |
</context> |
| 298 |
|
| 299 |
<context attribute="Environment Variable Substitution" lineEndContext="#pop" name="EnvVarSubst"> |
| 300 |
<DetectChar attribute="Environment Variable Substitution" context="#pop" char="}" /> |
| 301 |
<keyword attribute="Standard Environment Variable" context="#stay" String="environment-variables" insensitive="false" /> |
| 302 |
<!--[- if environment_variables.re ]--> |
| 303 |
<RegExpr attribute="Standard Environment Variable" context="#stay" String="<!--{environment_variables.re}-->" /> |
| 304 |
<!--[- endif ]--> |
| 305 |
<DetectIdentifier /> |
| 306 |
<IncludeRules context="Detect Variable Substitutions" /> |
| 307 |
</context> |
| 308 |
|
| 309 |
<context attribute="Variable Substitution" lineEndContext="#pop" name="VarSubst"> |
| 310 |
<DetectChar attribute="Variable Substitution" context="#pop" char="}" /> |
| 311 |
<IncludeRules context="Detect Builtin Variables" /> |
| 312 |
<DetectIdentifier /> |
| 313 |
<IncludeRules context="Detect Variable Substitutions" /> |
| 314 |
</context> |
| 315 |
|
| 316 |
<context attribute="@Variable Substitution" lineEndContext="#pop" name="@VarSubst"> |
| 317 |
<DetectChar attribute="@Variable Substitution" context="VarSubst@" char="@" /> |
| 318 |
</context> |
| 319 |
|
| 320 |
<context attribute="@Variable Substitution" lineEndContext="#pop#pop" name="VarSubst@"> |
| 321 |
<DetectChar attribute="@Variable Substitution" context="#pop#pop" char="@" /> |
| 322 |
<IncludeRules context="Detect Builtin Variables" /> |
| 323 |
<DetectIdentifier /> |
| 324 |
</context> |
| 325 |
|
| 326 |
<context attribute="Normal Text" lineEndContext="#stay" name="Target Name"> |
| 327 |
<DetectSpaces /> |
| 328 |
<RegExpr attribute="Aliased Targets" context="#pop" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*" /> |
| 329 |
<IncludeRules context="Detect Targets" /> |
| 330 |
<IncludeRules context="User Function Opened" /> |
| 331 |
<IncludeRules context="LineError" /> |
| 332 |
</context> |
| 333 |
|
| 334 |
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Targets"> |
| 335 |
<RegExpr attribute="Targets" context="#stay" String="&tgt_name_re;" /> |
| 336 |
</context> |
| 337 |
|
| 338 |
<context attribute="Normal Text" lineEndContext="#stay" name="LineError"> |
| 339 |
<RegExpr attribute="Error" context="#stay" String=".*" /> |
| 340 |
</context> |
| 341 |
|
| 342 |
<context attribute="Normal Text" lineEndContext="#stay" name="User Function Args"> |
| 343 |
<Detect2Chars attribute="Normal Text" context="#stay" char="\" char1="(" /> |
| 344 |
<Detect2Chars attribute="Normal Text" context="#stay" char="\" char1=")" /> |
| 345 |
<Detect2Chars attribute="Escapes" context="#stay" char="\" char1=""" /> |
| 346 |
<Detect2Chars attribute="Escapes" context="#stay" char="\" char1="$" /> |
| 347 |
<Detect2Chars attribute="Escapes" context="#stay" char="\" char1="n" /> |
| 348 |
<Detect2Chars attribute="Escapes" context="#stay" char="\" char1="\" /> |
| 349 |
<DetectChar attribute="Strings" context="String" char=""" /> |
| 350 |
<RegExpr attribute="Strings" context="Bracketed String" String="\[(=*)\[" beginRegion="BracketedString" /> |
| 351 |
<DetectChar attribute="Comment" context="Match Comments" char="#" lookAhead="true" /> |
| 352 |
<IncludeRules context="Detect Builtin Variables" /> |
| 353 |
<IncludeRules context="Detect Variable Substitutions" /> |
| 354 |
<IncludeRules context="Detect Special Values" /> |
| 355 |
<IncludeRules context="Detect Aliased Targets" /> |
| 356 |
<IncludeRules context="Detect Generator Expressions" /> |
| 357 |
<DetectIdentifier /> |
| 358 |
</context> |
| 359 |
|
| 360 |
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Special Values"> |
| 361 |
<RegExpr attribute="Version Arg" context="#stay" String="\b[0-9]++(.[0-9]++)+\b" /> |
| 362 |
<keyword attribute="True Special Arg" context="#stay" String="true_special_arg" insensitive="true" /> |
| 363 |
<keyword attribute="False Special Arg" context="#stay" String="false_special_arg" insensitive="true" /> |
| 364 |
<RegExpr attribute="False Special Arg" context="#stay" String="\b(?:&var_ref_re;-)?NOTFOUND\b" /> |
| 365 |
<RegExpr attribute="Special Args" context="#stay" String="\bCMP[0-9][0-9][0-9][0-9]\b" /> |
| 366 |
</context> |
| 367 |
|
| 368 |
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Aliased Targets"> |
| 369 |
<RegExpr attribute="Aliased Targets" context="#stay" String="&tgt_name_re;::&tgt_name_re;(?:\:\:&tgt_name_re;)*" /> |
| 370 |
</context> |
| 371 |
|
| 372 |
<context attribute="Comment" lineEndContext="#pop" name="Match Comments"> |
| 373 |
<DetectSpaces /> |
| 374 |
<RegExpr attribute="Comment" context="#pop!Bracketed Comment" String="#\[(=*)\[" beginRegion="BracketedComment" /> |
| 375 |
<DetectChar attribute="Comment" context="#pop!Comment" char="#" /> |
| 376 |
<DetectIdentifier /> |
| 377 |
</context> |
| 378 |
|
| 379 |
<context attribute="Comment" lineEndContext="#pop" name="Match Comments and Docs"> |
| 380 |
<RegExpr attribute="Region Marker" context="#pop!RST Documentation" String="^#\[(=*)\[\.rst:" column="0" beginRegion="RSTDocumentation" /> |
| 381 |
<IncludeRules context="Match Comments" /> |
| 382 |
</context> |
| 383 |
|
| 384 |
<context attribute="Comment" lineEndContext="#pop" name="Comment"> |
| 385 |
<DetectSpaces /> |
| 386 |
<LineContinue attribute="Comment" context="#pop" /> |
| 387 |
<IncludeRules context="##Comments" /> |
| 388 |
<DetectIdentifier /> |
| 389 |
</context> |
| 390 |
|
| 391 |
<context attribute="Comment" lineEndContext="#stay" name="RST Documentation" dynamic="true"> |
| 392 |
<RegExpr attribute="Region Marker" context="#pop" String="^#?\]%1\]" dynamic="true" column="0" endRegion="RSTDocumentation" /> |
| 393 |
<IncludeRules context="##reStructuredText" /> |
| 394 |
</context> |
| 395 |
|
| 396 |
<context attribute="Comment" lineEndContext="#stay" name="Bracketed Comment" dynamic="true"> |
| 397 |
<LineContinue attribute="Comment" context="#stay" /> |
| 398 |
<DetectSpaces /> |
| 399 |
<StringDetect attribute="Comment" context="#pop" String="]%1]" dynamic="true" endRegion="BracketedComment" /> |
| 400 |
<IncludeRules context="##Comments" /> |
| 401 |
</context> |
| 402 |
|
| 403 |
<context attribute="Strings" lineEndContext="#stay" name="String"> |
| 404 |
<DetectSpaces /> |
| 405 |
<DetectIdentifier /> |
| 406 |
<RegExpr attribute="Strings" context="#pop" String=""(?=[ );]|$)" /> |
| 407 |
<Detect2Chars attribute="Escapes" context="#stay" char="\" char1=""" /> |
| 408 |
<Detect2Chars attribute="Escapes" context="#stay" char="\" char1="$" /> |
| 409 |
<Detect2Chars attribute="Escapes" context="#stay" char="\" char1="n" /> |
| 410 |
<Detect2Chars attribute="Escapes" context="#stay" char="\" char1="r" /> |
| 411 |
<Detect2Chars attribute="Escapes" context="#stay" char="\" char1="t" /> |
| 412 |
<Detect2Chars attribute="Escapes" context="#stay" char="\" char1="\" /> |
| 413 |
<IncludeRules context="Detect Variable Substitutions" /> |
| 414 |
<IncludeRules context="Detect Generator Expressions" /> |
| 415 |
</context> |
| 416 |
|
| 417 |
<context attribute="Strings" lineEndContext="#stay" name="Bracketed String" dynamic="true"> |
| 418 |
<StringDetect attribute="Strings" context="#pop" String="]%1]" dynamic="true" endRegion="BracketedString" /> |
| 419 |
</context> |
| 420 |
|
| 421 |
<context attribute="Normal Text" lineEndContext="#stay" name="Detect Generator Expressions"> |
| 422 |
<Detect2Chars attribute="Generator Expression" context="Generator Expression" char="$" char1="<" /> |
| 423 |
</context> |
| 424 |
|
| 425 |
<context attribute="Generator Expression" lineEndContext="#stay" name="Generator Expression"> |
| 426 |
<IncludeRules context="Detect Generator Expressions" /> |
| 427 |
<DetectChar attribute="Comment" context="Comment" char="#" /> |
| 428 |
<DetectChar attribute="Generator Expression" context="#pop" char=">" /> |
| 429 |
<keyword attribute="Generator Expression Keyword" context="#stay" String="generator-expressions" insensitive="false" /> |
| 430 |
<IncludeRules context="Detect Aliased Targets" /> |
| 431 |
<IncludeRules context="Detect Variable Substitutions" /> |
| 432 |
<DetectIdentifier /> |
| 433 |
</context> |
| 434 |
|
| 435 |
</contexts> |
| 436 |
|
| 437 |
<itemDatas> |
| 438 |
<itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" /> |
| 439 |
<itemData name="Comment" defStyleNum="dsComment" spellChecking="true" /> |
| 440 |
<itemData name="Command" defStyleNum="dsKeyword" spellChecking="false" /> |
| 441 |
<itemData name="Control Flow" defStyleNum="dsControlFlow" spellChecking="false" /> |
| 442 |
<itemData name="CMake Provided Function/Macro" defStyleNum="dsFunction" bold="true" spellChecking="false" /> |
| 443 |
<itemData name="User Function/Macro" defStyleNum="dsFunction" spellChecking="false" /> |
| 444 |
<itemData name="Property" defStyleNum="dsOthers" spellChecking="false" /> |
| 445 |
<itemData name="Targets" defStyleNum="dsBaseN" spellChecking="false" /> |
| 446 |
<itemData name="Aliased Targets" defStyleNum="dsBaseN" spellChecking="false" /> |
| 447 |
<itemData name="Named Args" defStyleNum="dsOthers" spellChecking="false" /> |
| 448 |
<itemData name="Special Args" defStyleNum="dsOthers" spellChecking="false" /> |
| 449 |
<itemData name="True Special Arg" defStyleNum="dsOthers" color="#30a030" selColor="#30a030" spellChecking="false" /> |
| 450 |
<itemData name="False Special Arg" defStyleNum="dsOthers" color="#e05050" selColor="#e05050" spellChecking="false" /> |
| 451 |
<itemData name="Version Arg" defStyleNum="dsDataType" spellChecking="false" /> |
| 452 |
<itemData name="Strings" defStyleNum="dsString" spellChecking="true" /> |
| 453 |
<itemData name="Escapes" defStyleNum="dsSpecialChar" spellChecking="false" /> |
| 454 |
<itemData name="Builtin Variable" defStyleNum="dsDecVal" color="#c09050" selColor="#c09050" spellChecking="false" /> |
| 455 |
<itemData name="CMake Internal Variable" defStyleNum="dsVariable" spellChecking="false" /> |
| 456 |
<itemData name="Internal Name" defStyleNum="dsVariable" spellChecking="false" /> |
| 457 |
<itemData name="Variable Substitution" defStyleNum="dsDecVal" spellChecking="false" /> |
| 458 |
<itemData name="@Variable Substitution" defStyleNum="dsBaseN" spellChecking="false" /> |
| 459 |
<itemData name="Cache Variable Substitution" defStyleNum="dsFloat" spellChecking="false" /> |
| 460 |
<itemData name="Environment Variable Substitution" defStyleNum="dsFloat" spellChecking="false" /> |
| 461 |
<itemData name="Standard Environment Variable" defStyleNum="dsFloat" spellChecking="false" /> |
| 462 |
<itemData name="Generator Expression Keyword" defStyleNum="dsKeyword" color="#b84040" selColor="#b84040" spellChecking="false" /> |
| 463 |
<itemData name="Generator Expression" defStyleNum="dsOthers" color="#b86050" selColor="#b86050" spellChecking="false" /> |
| 464 |
<itemData name="Standard Module" defStyleNum="dsImport" spellChecking="false" /> |
| 465 |
<itemData name="Deprecated Module" defStyleNum="dsImport" spellChecking="false" /> |
| 466 |
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false" /> |
| 467 |
<itemData name="Error" defStyleNum="dsError" spellChecking="false" /> |
| 468 |
</itemDatas> |
| 469 |
|
| 470 |
</highlighting> |
| 471 |
|
| 472 |
<general> |
| 473 |
<comments> |
| 474 |
<comment name="singleLine" start="#" position="afterwhitespace" /> |
| 475 |
<comment name="multiLine" start="#[[" end="]]" region="BracketedComment" /> |
| 476 |
</comments> |
| 477 |
<keywords casesensitive="1" weakDeliminator="." /> |
| 478 |
</general> |
| 479 |
</language> |
| 480 |
|
| 481 |
<!-- kate: replace-tabs on; indent-width 2; tab-width 2; --> |