Debian Codegraph @

data/syntax/ppd.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!DOCTYPE language []>
4
5 <!--
6 The following documentation is available for PPD:
7 - File Format Specification: http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf
8 - Update to the Specification: http://partners.adobe.com/public/developer/en/ps/5645.PPD_Update.pdf
9 - CUPS PPD Extensions: http://www.cups.org/documentation.php/doc-1.4/spec-ppd.html
10 -->
11
12 <language name="PostScript Printer Description" version="4" kateversion="5.0" section="Markup" extensions="*.ppd" author="Lukas Sommer" mimetype="application/vnd.cups-ppd" license="Public Domain">
13
14 <highlighting>
15
16 <contexts>
17 <context attribute="Option" lineEndContext="#stay" name="contextNormal">
18 <Detect2Chars context="contextComment" char="*" char1="%" column="0"/>
19 <DetectChar attribute="Colon" context="contextValue" char=":" />
20 <StringDetect attribute="Keyword" String="*OpenUI" beginRegion="ui"/>
21 <StringDetect attribute="Keyword" String="*CloseUI" endRegion="ui"/>
22 <StringDetect attribute="Keyword" String="*OpenGroup" beginRegion="group"/>
23 <StringDetect attribute="Keyword" String="*CloseGroup" endRegion="group"/>
24 <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 '/'. -->
25 </context>
26 <context attribute="Comment" lineEndContext="#pop" name="contextComment">
27 <DetectSpaces />
28 <IncludeRules context="##Comments"/>
29 </context>
30 <context attribute="Value" lineEndContext="#pop" name="contextValue">
31 <DetectSpaces/>
32 <DetectChar attribute="Value" context="contextValueMultiLine" char="&quot;" />
33 <RegExpr attribute="Value" context="contextValueSingleLine" String="."/>
34 </context>
35 <context attribute="Value" lineEndContext="#stay" name="contextValueMultiLine">
36 <DetectSpaces/>
37 <DetectChar attribute="Value" context="#pop" char="&quot;" />
38 </context>
39 <context attribute="Value" lineEndContext="#pop" name="contextValueSingleLine">
40 </context>
41 </contexts>
42
43 <itemDatas>
44 <itemData name="Comment" defStyleNum="dsComment"/>
45 <itemData name="Keyword" defStyleNum="dsKeyword"/>
46 <itemData name="Colon" defStyleNum="dsKeyword"/>
47 <itemData name="Value" defStyleNum="dsString"/>
48 <itemData name="Option" defStyleNum="dsOthers"/>
49 </itemDatas>
50
51 </highlighting>
52
53 <general>
54 <comments>
55 <comment name="singleLine" start="*%"/>
56 </comments>
57 </general>
58
59 </language>
60 <!-- kate: replace-tabs on; tab-width 4; indent-width 4; -->