author | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-01-24 21:13:38 (UTC) |
commit | f5fa70864c66da0f12f3d34f6451c74e3bfb3103 (patch) (unidiff) | |
tree | ad6585cc10ba3397bed82c87a1b692fa0a4b9e43 /share/tinykate/syntax/rpmspec.xml | |
parent | 67699ef8fd807a99c08d6401a67e8000bca8f1ca (diff) | |
download | opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.zip opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.gz opie-f5fa70864c66da0f12f3d34f6451c74e3bfb3103.tar.bz2 |
added syntax highlighting patterns to tinykate
Diffstat (limited to 'share/tinykate/syntax/rpmspec.xml') (more/less context) (ignore whitespace changes)
-rw-r--r-- | share/tinykate/syntax/rpmspec.xml | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/share/tinykate/syntax/rpmspec.xml b/share/tinykate/syntax/rpmspec.xml new file mode 100644 index 0000000..68e7284 --- a/dev/null +++ b/share/tinykate/syntax/rpmspec.xml | |||
@@ -0,0 +1,67 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!DOCTYPE language SYSTEM "language.dtd"> | ||
3 | <language name="RPM Spec" version="1.00" kateversion="2.0" section="Other" extensions="*.spec" mimetype=""> | ||
4 | <highlighting> | ||
5 | <list name="keywords"> | ||
6 | <item> Name </item> | ||
7 | <item> Summary </item> | ||
8 | <item> Version </item> | ||
9 | <item> Release </item> | ||
10 | <item> Source </item> | ||
11 | <item> Group </item> | ||
12 | <item> BuildRoot </item> | ||
13 | <item> Copyright </item> | ||
14 | <item> Packager </item> | ||
15 | <item> Url </item> | ||
16 | <item> URL </item> | ||
17 | <item> Prefix </item> | ||
18 | <item> Requires </item> | ||
19 | <item> BuildRequires </item> | ||
20 | <item> Serial </item> | ||
21 | <item> Vendor </item> | ||
22 | <item> License </item> | ||
23 | </list> | ||
24 | <list name="types"> | ||
25 | <item> GPL </item> | ||
26 | <item> LGPL </item> | ||
27 | <item> Artistic </item> | ||
28 | </list> | ||
29 | <contexts> | ||
30 | |||
31 | <context attribute="0" lineEndContext="0"> | ||
32 | <keyword attribute="1" context="0" String="keywords"/> | ||
33 | <keyword attribute="5" context="0" String="types"/> | ||
34 | <RegExpr attribute="2" context="0" String="%[a-zA-Z0-9_]*" /> | ||
35 | <DetectChar attribute="3" context="1" char="#" /> | ||
36 | <RegExpr attribute="1" context="2" String="\{[a-zA-Z0-9_]*" /> | ||
37 | <RegExpr attribute="4" context="3" String="<\s*[a-zA-Z0-9_@\.]*" /> | ||
38 | <RegExpr attribute="5" context="0" String="\$[a-zA-Z0-9_]*" /> | ||
39 | <RegExpr attribute="1" context="0" String="(Source|Patch)[0-9]*" /> | ||
40 | <RegExpr attribute="1" context="0" String="^\*.*" /> <!-- ChangeLog --> | ||
41 | <Int attribute="4" context="0" /> | ||
42 | </context> | ||
43 | |||
44 | <context attribute="3" lineEndContext="0"/> | ||
45 | |||
46 | <context attribute="1" lineEndContext="0"> | ||
47 | <DetectChar attribute="1" char="}" context="0"/> | ||
48 | </context> | ||
49 | |||
50 | <context attribute="4" lineEndContext="0"> | ||
51 | <DetectChar attribute="4" char=">" context="0"/> | ||
52 | </context> | ||
53 | |||
54 | </contexts> | ||
55 | <itemDatas> | ||
56 | <itemData name="Normal Text" defStyleNum="dsNormal"/> | ||
57 | <itemData name="Keyword" defStyleNum="dsKeyword"/> | ||
58 | <itemData name="Red" defStyleNum="dsString"/> | ||
59 | <itemData name="Comment" defStyleNum="dsComment"/> | ||
60 | <itemData name="Blue" defStyleNum="dsDecVal"/> | ||
61 | <itemData name="Data" defStyleNum="dsDataType"/> | ||
62 | </itemDatas> | ||
63 | </highlighting> | ||
64 | <general> | ||
65 | <keywords casesensitive="1" /> | ||
66 | </general> | ||
67 | </language> | ||