summaryrefslogtreecommitdiffstats
path: root/kate/data/ppd.xml
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-01-09 00:24:34 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-01-09 00:24:34 +0100
commitbf4e405e03859bf383f55715944f4f71bd338c34 (patch)
tree293783d05c079b477b9ef396bbd851ca01714e2d /kate/data/ppd.xml
parentc5189a79b8621b38b53e3cec952d49630e16dd3a (diff)
downloadtdelibs-bf4e405e03859bf383f55715944f4f71bd338c34.tar.gz
tdelibs-bf4e405e03859bf383f55715944f4f71bd338c34.zip
Update kate syntax highlight files
Diffstat (limited to 'kate/data/ppd.xml')
-rw-r--r--kate/data/ppd.xml48
1 files changed, 48 insertions, 0 deletions
diff --git a/kate/data/ppd.xml b/kate/data/ppd.xml
new file mode 100644
index 000000000..759503e75
--- /dev/null
+++ b/kate/data/ppd.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE language SYSTEM "language.dtd" []>
+
+<!--
+The following documentation is available for PPD:
+- File Format Specification: http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf
+- Update to the Specification: http://partners.adobe.com/public/developer/en/ps/5645.PPD_Update.pdf
+- CUPS PPD Extensions: http://www.cups.org/documentation.php/doc-1.4/spec-ppd.html
+-->
+
+<language name="PostScript Printer Description" version="0.2" kateversion="2.5" section="Markup" extensions="*.ppd" author="Lukas Sommer" mimetype="application/vnd.cups-ppd" license="public domain">
+
+ <highlighting>
+
+ <contexts>
+ <context attribute="Option" lineEndContext="#stay" name="contextNormal">
+ <Detect2Chars context="contextComment" char="*" char1="%" column="0"/>
+ <DetectChar attribute="Colon" context="contextValue" char=":" />
+ <StringDetect attribute="Keyword" String="*OpenUI" beginRegion="ui"/>
+ <StringDetect attribute="Keyword" String="*CloseUI" endRegion="ui"/>
+ <StringDetect attribute="Keyword" String="*OpenGroup" beginRegion="group"/>
+ <StringDetect attribute="Keyword" String="*CloseGroup" endRegion="group"/>
+ <RegExpr attribute="Keyword" String="\*[&#33;-&#46;&#48;-&#57;&#59;-&#126;]*"/> <!-- According to http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf page 16 (page 20 in the PDF file), all characters from 33 to 126 are allowed, except ':' and '/'. -->
+ </context>
+ <context attribute="Comment" lineEndContext="#pop" name="contextComment">
+ <IncludeRules context="##Alerts"/>
+ </context>
+ <context attribute="Value" lineEndContext="#pop" name="contextValue"></context>
+ </contexts>
+
+ <itemDatas>
+ <itemData name="Comment" defStyleNum="dsComment"/>
+ <itemData name="Keyword" defStyleNum="dsKeyword"/>
+ <itemData name="Colon" defStyleNum="dsKeyword"/>
+ <itemData name="Value" defStyleNum="dsString"/>
+ <itemData name="Option" defStyleNum="dsOthers"/>
+ </itemDatas>
+
+ </highlighting>
+
+ <general>
+ <comments>
+ <comment name="singleLine" start="*%"/>
+ </comments>
+ </general>
+
+</language>