diff options
Diffstat (limited to 'kate/data/rpmspec.xml')
-rw-r--r-- | kate/data/rpmspec.xml | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/kate/data/rpmspec.xml b/kate/data/rpmspec.xml new file mode 100644 index 000000000..246bb264d --- /dev/null +++ b/kate/data/rpmspec.xml @@ -0,0 +1,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="<\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=">" 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> |