summaryrefslogtreecommitdiffstats
path: root/kate/data/mandoc.xml
blob: ba388d05eb8a8475b94645043b9a0dac5c72264f (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="Troff Mandoc" section="Markup" version="0.11" kateversion="2.4" extensions="*.1;*.2;*.3;*.4;*.5;*.6;*.7;*.8;*.1m;*.3x;*.tmac" mimetype="" author="Matthew Woehlke ([email protected])" license="GPL">

  <highlighting>

    <list name="headings">
      <item>SH</item>
      <item>SS</item>
      <item>TH</item>
    </list>

    <list name="paragraph">
      <item>HP</item>
      <item>IP</item>
      <item>LP</item>
      <item>P</item>
      <item>PD</item>
      <item>PP</item>
      <item>RE</item>
      <item>RS</item>
      <item>TP</item>
    </list>

    <list name="formatting">
      <item>B</item>
      <item>BI</item>
      <item>BR</item>
      <item>I</item>
      <item>IB</item>
      <item>IR</item>
      <item>RB</item>
      <item>RI</item>
      <item>SM</item>
      <item>SB</item>
    </list>

    <list name="others">
      <item>DT</item>
    </list>

    <contexts>

      <!-- root context -->
      <context name="Normal" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="DetectComments##Roff"/>
        <DetectChar attribute="Macros" context="DetectDirective" char="." column="0"/>
        <IncludeRules context="DetectOthers##Roff"/>
      </context>

      <!-- directive start -->
      <context name="DetectDirective" attribute="Macros" lineEndContext="#pop">
        <keyword attribute="Headings" context="Directive" String="headings"/>
        <keyword attribute="Paragraphs" context="Directive" String="paragraph"/>
        <keyword attribute="Formatting" context="Directive" String="formatting"/>
        <keyword attribute="Other Macros" context="Directive" String="others"/>
        <IncludeRules context="DetectDirective##Roff"/>
      </context>

      <context name="Directive" attribute="Identifier" lineEndContext="#pop">
        <IncludeRules context="Directive##Roff"/>
      </context>

    </contexts>

    <itemDatas>
      <itemData name="Normal Text"    defStyleNum="dsNormal"/>
      <itemData name="Comment"        defStyleNum="dsComment"/>
      <itemData name="Macros"         defStyleNum="dsFunction"/>
      <itemData name="Headings"       defStyleNum="dsKeyword"/>
      <itemData name="Paragraphs"     defStyleNum="dsDataType"/>
      <itemData name="Formatting"     defStyleNum="dsKeyword"/>
      <itemData name="Other Macros"   defStyleNum="dsFunction"/>
      <itemData name="Identifier"     defStyleNum="dsString"/>
    </itemDatas>

  </highlighting>

  <general>

    <comments>
      <comment name="singleLine" start=".\&quot;" />
    </comments>

    <keywords casesensitive="1"/>

  </general>

</language>