Debian Codegraph @

data/syntax/asn1.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language>
3 <!--
4 You'll find the "Writing a Kate Highlighting XML File HOWTO" at http://kate.kde.org/doc/hlhowto.php
5 This is a template for the XML format used for syntax highlight descriptions
6 for the Kate text editor (http://kate.kde.org), which is part of the KDE
7 desktop environment (http://www.kde.org).
8
9 Use it as the base for your own syntax files.
10
11 Look at language.dtd for some documentation of the allowed elements and their attributes.
12 There is also a description of how to validate your syntax file.
13
14 You'll find the "Writing a Kate Highlighting XML File HOWTO" at http://kate.kde.org/doc/hlhowto.php
15 -->
16 <language name="ASN.1" section="Markup" version="6" kateversion="5.0" extensions="*.asn;*.asn1" mimetype="" author="Philippe Rigault" license="GPL">
17 <highlighting>
18 <list name="keywords">
19 <item>DEFINITIONS</item>
20 <item>EXPORTS</item>
21 <item>IMPORTS</item>
22 <item>FROM</item>
23 <item>APPLICATION</item>
24 <item>PRIVATE</item>
25 <item>UNIVERSAL</item>
26 <item>DEFAULT</item>
27 <item>OPTIONAL</item>
28 <item>FALSE</item>
29 <item>TRUE</item>
30 <item>AUTOMATIC</item>
31 <item>CLASS</item>
32 <item>WITH</item>
33 <item>SIZE</item>
34 <item>TAGS</item>
35 </list>
36 <list name="types">
37 <item>BOOLEAN</item>
38 <item>INTEGER</item>
39 <item>OCTET</item>
40 <item>STRING</item>
41 <item>NULL</item>
42 <item>REAL</item>
43 <item>ENUMERATED</item>
44 <item>SEQUENCE</item>
45 <item>SET</item>
46 <item>CHOICE</item>
47 <item>OF</item>
48 <item>UNION</item>
49 <item>StringStore</item>
50 <item>GeneralString</item>
51 <item>IA5String</item>
52 <item>ISO64String</item>
53 <item>NumericString</item>
54 <item>PrintableString</item>
55 <item>T61String</item>
56 <item>TeletexString</item>
57 <item>UniversalString</item>
58 <item>UTF8String</item>
59 <item>VideotexString</item>
60 <item>VisibleString</item>
61 <item>DATE</item>
62 <item>DATE-TIME</item>
63 <item>DURATION</item>
64 <item>GeneralizedTime</item>
65 <item>UTCTime</item>
66 </list>
67
68 <contexts>
69 <context name="Normal Text" attribute="Normal Text" lineEndContext="#stay">
70 <keyword attribute="Keyword" context="#stay" String="keywords" />
71 <StringDetect attribute="Keyword" context="#stay" String="BEGIN" beginRegion="Block"/>
72 <StringDetect attribute="Keyword" context="#stay" String="END" endRegion="Block"/>
73 <keyword attribute="Data Type" context="#stay" String="types" />
74 <Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/>
75 <Detect2Chars attribute="Comment" context="Multiline Comment" char="/" char1="*" beginRegion="Comment"/>
76 <DetectChar attribute="Normal Text" context="#stay" char="{" beginRegion="BraceBlock"/>
77 <DetectChar attribute="Normal Text" context="#stay" char="}" endRegion="BraceBlock"/>
78
79 <Int attribute="Decimal" context="#stay"/>
80 <DetectChar attribute="String" context="ctxString" char="&quot;"/>
81 </context>
82
83 <context attribute="Comment" lineEndContext="#pop" name="Comment">
84 <IncludeRules context="##Comments" />
85 </context>
86 <context attribute="Comment" lineEndContext="#stay" name="Multiline Comment">
87 <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
88 <IncludeRules context="##Comments"/>
89 </context>
90
91 <context attribute="String" lineEndContext="#stay" name="ctxString">
92 <DetectChar attribute="String" context="#pop" char="&quot;"/>
93 </context>
94 </contexts>
95
96 <itemDatas>
97 <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
98 <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/>
99 <itemData name="Comment" defStyleNum="dsComment"/>
100 <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false"/>
101 <itemData name="Decimal" defStyleNum="dsDecVal"/>
102 <itemData name="String" defStyleNum="dsString"/>
103 </itemDatas>
104 </highlighting>
105 <general>
106 <comments>
107 <comment name="singleLine" start="--"/>
108 <comment name="multiLine" start="/*" end="*/" region="Comment"/>
109 </comments>
110 </general>
111 </language>
112 <!--
113 // kate: space-indent on; indent-width 2; replace-tabs on;
114 -->