Debian Codegraph @

data/generators/spdx-comments.xml.tpl

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language SYSTEM "language.dtd">
3 <!-- ***** THIS FILE WAS GENERATED BY A SCRIPT - DO NOT EDIT *****
4 cd data/generators
5 # increase version of spdx-comments.xml.tpl then
6 ./generate-spdx-syntax.py > ../syntax/spdx-comments.xml
7 -->
8 <language
9 version="6"
10 kateversion="3.1"
11 name="SPDX-Comments"
12 section="Other"
13 extensions=""
14 mimetype=""
15 author="Alex Turbov ([email protected])"
16 license="MIT"
17 hidden="true"
18 >
19 <highlighting>
20 <list name="tags">
21 <item>SPDX-License-Identifier:</item>
22 <item>SPDX-FileContributor:</item>
23 <item>SPDX-FileCopyrightText:</item>
24 <item>SPDX-LicenseInfoInFile:</item>
25 </list>
26
27 <list name="operators">
28 <item>AND</item>
29 <item>OR</item>
30 <item>WITH</item>
31 </list>
32
33 <list name="licenses">
34 <!--[- for license in licenses if not license.isDeprecatedLicenseId ]-->
35 <item><!--{ license.licenseId }--></item>
36 <!--[- endfor ]-->
37 </list>
38
39 <list name="deprecated-licenses">
40 <!--[- for license in licenses if license.isDeprecatedLicenseId ]-->
41 <item><!--{ license.licenseId }--></item>
42 <!--[- endfor ]-->
43 </list>
44
45 <list name="exceptions">
46 <!--[- for exception in exceptions if not exception.isDeprecatedLicenseId ]-->
47 <item><!--{ exception.licenseExceptionId }--></item>
48 <!--[- endfor ]-->
49 </list>
50
51 <list name="deprecated-exceptions">
52 <!--[- for exception in exceptions if exception.isDeprecatedLicenseId ]-->
53 <item><!--{ exception.licenseExceptionId }--></item>
54 <!--[- endfor ]-->
55 </list>
56
57 <contexts>
58
59 <context name="Normal" attribute="SPDX Tag" lineEndContext="#pop">
60 <WordDetect String="SPDX-License-Identifier:" attribute="SPDX Tag" context="license-expression" />
61 <keyword String="tags" attribute="SPDX Tag" />
62 </context>
63
64 <context name="license-expression" attribute="SPDX Value" lineEndContext="#pop" fallthrough="true" fallthroughContext="#pop">
65 <DetectSpaces/>
66 <AnyChar String="()+" context="#stay" attribute="SPDX License Expression Operator" />
67 <keyword String="licenses" context="#stay" attribute="SPDX License" />
68 <keyword String="deprecated-licenses" context="#stay" attribute="SPDX Deprecated License" />
69 <keyword String="exceptions" context="#stay" attribute="SPDX License Exception" />
70 <keyword String="deprecated-exceptions" context="#stay" attribute="SPDX Deprecated License Exception" />
71 <keyword String="operators" context="#stay" attribute="SPDX License Expression Operator" />
72 <RegExpr attribute="SPDX License" context="#stay" String="\bLicenseRef-[^\s]+" />
73 </context>
74
75 </contexts>
76
77 <itemDatas>
78 <itemData name="SPDX Tag" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
79 <itemData name="SPDX Value" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
80 <itemData name="SPDX License" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
81 <itemData name="SPDX License Exception" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
82 <itemData name="SPDX Deprecated License" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
83 <itemData name="SPDX Deprecated License Exception" defStyleNum="dsAnnotation" italic="true" spellChecking="false" />
84 <itemData name="SPDX License Expression Operator" defStyleNum="dsOperator" italic="true" spellChecking="false" />
85 </itemDatas>
86
87 </highlighting>
88
89 <general>
90 <keywords casesensitive="1" weakDeliminator=":-." />
91 </general>
92
93 </language>
94 <!-- kate: indent-width 2; -->