summaryrefslogtreecommitdiffstats
path: root/kate/data/rpmspec.xml
blob: 246bb264d542a9067020cf3ae0fb8f281f21d700 (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="RPM Spec" version="1.1" kateversion="2.4" section="Other" extensions="*.spec" mimetype="">
  <highlighting>
    <list name="keywords">
        <item> Name </item>
                <item> Summary </item>
                <item> Version </item>
                <item> Epoch </item>
                <item> Serial </item>
                <item> Release </item>
                <item> Source </item>
                <item> Group </item>
                <item> Copyright </item>
                <item> License </item>
                <item> Vendor </item>
                <item> Distribution </item>
                <item> Packager </item>
                <item> Url </item>
                <item> URL </item>
                <item> Prefix </item>
                <item> Conflicts </item>
                <item> Obsoletes </item>
                <item> Provides </item>
                <item> PreReq </item>
                <item> Requires </item>
                <item> BuildArch </item>
                <item> BuildArchitectures </item>
                <item> BuildConflicts </item>
                <item> BuildRequires </item>
                <item> BuildRoot </item>
                <item> ExclusiveArch </item>
                <item> ExclusiveOs </item>
                <item> ExcludeArch </item>
                <item> ExcludeOs </item>
    </list>
    <list name="types">
      <item> GPL </item>
      <item> LGPL </item>
      <item> Artistic </item>
    </list>
    <contexts>

      <context attribute="Normal Text" lineEndContext="#stay" name="Normal">
         <keyword attribute="Keyword" context="#stay" String="keywords"/>
         <keyword attribute="Data" context="#stay" String="types"/>
         <RegExpr attribute="Red" context="#stay" String="%\w*" />
         <DetectChar attribute="Comment" context="Comment" char="#" />
         <RegExpr attribute="Keyword" context="Some Context" String="\{\w*" />
         <RegExpr attribute="Blue" context="Some Context2" String="&lt;\s*[\w@\.]*" />
         <RegExpr attribute="Data" context="#stay" String="\$\w*" />
         <RegExpr attribute="Keyword" context="#stay" String="(Source|Patch)\d*" />
         <RegExpr attribute="Keyword" context="#stay" String="\*.*" firstNonSpace="true"/>    <!-- ChangeLog -->
         <Int attribute="Blue" context="#stay" />
      </context>

      <context attribute="Comment" lineEndContext="#pop" name="Comment"/>

      <context attribute="Keyword" lineEndContext="#pop" name="Some Context">
         <DetectChar attribute="Keyword" char="}" context="#pop"/>
      </context>

      <context attribute="Blue" lineEndContext="#pop" name="Some Context2">
         <DetectChar attribute="Blue" char="&gt;" context="#pop"/>
      </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>