File: asn1.xml

package info (click to toggle)
kf6-syntax-highlighting 6.20.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 49,872 kB
  • sloc: xml: 205,656; cpp: 12,882; python: 3,055; sh: 965; perl: 814; ruby: 494; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; exp: 61; erlang: 54; sql: 51; java: 47; sed: 45; objc: 37; tcl: 36; awk: 31; asm: 30; fortran: 18; cs: 10
file content (114 lines) | stat: -rw-r--r-- 4,499 bytes parent folder | download | duplicates (5)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language>
<!--
        You'll find the "Writing a Kate Highlighting XML File HOWTO" at http://kate.kde.org/doc/hlhowto.php
        This is a template for the XML format used for syntax highlight descriptions
        for the Kate text editor (http://kate.kde.org), which is part of the KDE
        desktop environment (http://www.kde.org).

        Use it as the base for your own syntax files.

        Look at language.dtd for some documentation of the allowed elements and their attributes.
        There is also a description of how to validate your syntax file.

        You'll find the "Writing a Kate Highlighting XML File HOWTO" at http://kate.kde.org/doc/hlhowto.php
-->
<language name="ASN.1" section="Markup" version="6" kateversion="5.0" extensions="*.asn;*.asn1" mimetype="" author="Philippe Rigault" license="GPL">
  <highlighting>
    <list name="keywords">
      <item>DEFINITIONS</item>
      <item>EXPORTS</item>
      <item>IMPORTS</item>
      <item>FROM</item>
      <item>APPLICATION</item>
      <item>PRIVATE</item>
      <item>UNIVERSAL</item>
      <item>DEFAULT</item>
      <item>OPTIONAL</item>
      <item>FALSE</item>
      <item>TRUE</item>
      <item>AUTOMATIC</item>
      <item>CLASS</item>
      <item>WITH</item>
      <item>SIZE</item>
      <item>TAGS</item>
    </list>
    <list name="types">
      <item>BOOLEAN</item>
      <item>INTEGER</item>
      <item>OCTET</item>
      <item>STRING</item>
      <item>NULL</item>
      <item>REAL</item>
      <item>ENUMERATED</item>
      <item>SEQUENCE</item>
      <item>SET</item>
      <item>CHOICE</item>
      <item>OF</item>
      <item>UNION</item>
      <item>StringStore</item>
      <item>GeneralString</item>
      <item>IA5String</item>
      <item>ISO64String</item>
      <item>NumericString</item>
      <item>PrintableString</item>
      <item>T61String</item>
      <item>TeletexString</item>
      <item>UniversalString</item>
      <item>UTF8String</item>
      <item>VideotexString</item>
      <item>VisibleString</item>
      <item>DATE</item>
      <item>DATE-TIME</item>
      <item>DURATION</item>
      <item>GeneralizedTime</item>
      <item>UTCTime</item>
    </list>
    
    <contexts>
      <context name="Normal Text" attribute="Normal Text" lineEndContext="#stay">
        <keyword attribute="Keyword" context="#stay" String="keywords" />
        <StringDetect attribute="Keyword" context="#stay" String="BEGIN" beginRegion="Block"/>
        <StringDetect attribute="Keyword" context="#stay" String="END" endRegion="Block"/>
        <keyword attribute="Data Type" context="#stay" String="types" />
        <Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/>
        <Detect2Chars attribute="Comment" context="Multiline Comment" char="/" char1="*" beginRegion="Comment"/>
        <DetectChar attribute="Normal Text" context="#stay" char="{" beginRegion="BraceBlock"/>
        <DetectChar attribute="Normal Text" context="#stay" char="}" endRegion="BraceBlock"/>

        <Int attribute="Decimal" context="#stay"/>
        <DetectChar attribute="String" context="ctxString" char="&quot;"/>
      </context>
      
      <context attribute="Comment" lineEndContext="#pop" name="Comment">
        <IncludeRules context="##Comments" />
      </context>
      <context attribute="Comment" lineEndContext="#stay" name="Multiline Comment">
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
        <IncludeRules context="##Comments"/>
      </context>

      <context attribute="String" lineEndContext="#stay" name="ctxString">
        <DetectChar attribute="String" context="#pop" char="&quot;"/>
      </context>
    </contexts>
    
    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false"/>
      <itemData name="Keyword"     defStyleNum="dsKeyword" spellChecking="false"/>
      <itemData name="Comment"     defStyleNum="dsComment"/>
      <itemData name="Data Type"   defStyleNum="dsDataType" spellChecking="false"/>
      <itemData name="Decimal"     defStyleNum="dsDecVal"/>
      <itemData name="String"      defStyleNum="dsString"/>
    </itemDatas>
  </highlighting>
  <general>
    <comments>
      <comment name="singleLine" start="--"/>
      <comment name="multiLine" start="/*" end="*/" region="Comment"/>
    </comments>
  </general>
</language>
<!--
// kate: space-indent on; indent-width 2; replace-tabs on;
-->