summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/rpmspec.xml
blob: 68e72848a33178e8b94e989d87fc9e99f83bffd2 (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="RPM Spec" version="1.00" kateversion="2.0" section="Other" extensions="*.spec" mimetype="">
  <highlighting>
    <list name="keywords">
        <item> Name </item>
                <item> Summary </item>
                <item> Version </item>
                <item> Release </item>
                <item> Source </item>
                <item> Group </item>
                <item> BuildRoot </item>
                <item> Copyright </item>
                <item> Packager </item>
                <item> Url </item>
                <item> URL </item>
                <item> Prefix </item>
                <item> Requires </item>
                <item> BuildRequires </item>
                <item> Serial </item>
                <item> Vendor </item>
                <item> License </item>
    </list>
    <list name="types">
      <item> GPL </item>
      <item> LGPL </item>
      <item> Artistic </item>
    </list>
    <contexts>

      <context attribute="0" lineEndContext="0">
         <keyword attribute="1" context="0" String="keywords"/>
         <keyword attribute="5" context="0" String="types"/>
         <RegExpr attribute="2" context="0" String="%[a-zA-Z0-9_]*" />
         <DetectChar attribute="3" context="1" char="#" />
         <RegExpr attribute="1" context="2" String="\{[a-zA-Z0-9_]*" />
         <RegExpr attribute="4" context="3" String="&lt;\s*[a-zA-Z0-9_@\.]*" />
         <RegExpr attribute="5" context="0" String="\$[a-zA-Z0-9_]*" />
         <RegExpr attribute="1" context="0" String="(Source|Patch)[0-9]*" />
         <RegExpr attribute="1" context="0" String="^\*.*" />    <!-- ChangeLog -->
         <Int attribute="4" context="0" />
   </context>

       <context attribute="3" lineEndContext="0"/>

       <context attribute="1" lineEndContext="0">
          <DetectChar attribute="1" char="}" context="0"/>
       </context>

       <context attribute="4" lineEndContext="0">
           <DetectChar attribute="4" char="&gt;" context="0"/>
       </context>

    </contexts>
    <itemDatas>
      <itemData name="Normal Text" defStyleNum="dsNormal"/>
      <itemData name="Keyword"  defStyleNum="dsKeyword"/>
      <itemData name="Red"  defStyleNum="dsString"/>
      <itemData name="Comment"  defStyleNum="dsComment"/>
      <itemData name="Blue"  defStyleNum="dsDecVal"/>
      <itemData name="Data" defStyleNum="dsDataType"/>
    </itemDatas>
  </highlighting>
   <general>
    <keywords casesensitive="1" />
  </general>
</language>