postscr.vim 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. " Vim syntax file
  2. " Language: PostScript - all Levels, selectable
  3. " Maintainer: Mike Williams <mrw@eandem.co.uk>
  4. " Filenames: *.ps,*.eps
  5. " Last Change: 31st October 2007
  6. " URL: http://www.eandem.co.uk/mrw/vim
  7. "
  8. " Options Flags:
  9. " postscr_level - language level to use for highligting (1, 2, or 3)
  10. " postscr_display - include display PS operators
  11. " postscr_ghostscript - include GS extensions
  12. " postscr_fonts - highlight standard font names (a lot for PS 3)
  13. " postscr_encodings - highlight encoding names (there are a lot)
  14. " postscr_andornot_binary - highlight and, or, and not as binary operators (not logical)
  15. "
  16. " quit when a syntax file was already loaded
  17. if exists("b:current_syntax")
  18. finish
  19. endif
  20. " PostScript is case sensitive
  21. syn case match
  22. " Keyword characters - all 7-bit ASCII bar PS delimiters and ws
  23. setlocal iskeyword=33-127,^(,^),^<,^>,^[,^],^{,^},^/,^%
  24. " Yer trusty old TODO highlghter!
  25. syn keyword postscrTodo contained TODO
  26. " Comment
  27. syn match postscrComment "%.*$" contains=postscrTodo,@Spell
  28. " DSC comment start line (NB: defines DSC level, not PS level!)
  29. syn match postscrDSCComment "^%!PS-Adobe-\d\+\.\d\+\s*.*$"
  30. " DSC comment line (no check on possible comments - another language!)
  31. syn match postscrDSCComment "^%%\u\+.*$" contains=@postscrString,@postscrNumber,@Spell
  32. " DSC continuation line (no check that previous line is DSC comment)
  33. syn match postscrDSCComment "^%%+ *.*$" contains=@postscrString,@postscrNumber,@Spell
  34. " Names
  35. syn match postscrName "\k\+"
  36. " Identifiers
  37. syn match postscrIdentifierError "/\{1,2}[[:space:]\[\]{}]"me=e-1
  38. syn match postscrIdentifier "/\{1,2}\k\+" contains=postscrConstant,postscrBoolean,postscrCustConstant
  39. " Numbers
  40. syn case ignore
  41. " In file hex data - usually complete lines
  42. syn match postscrHex "^[[:xdigit:]][[:xdigit:][:space:]]*$"
  43. "syn match postscrHex "\<\x\{2,}\>"
  44. " Integers
  45. syn match postscrInteger "\<[+-]\=\d\+\>"
  46. " Radix
  47. syn match postscrRadix "\d\+#\x\+\>"
  48. " Reals - upper and lower case e is allowed
  49. syn match postscrFloat "[+-]\=\d\+\.\>"
  50. syn match postscrFloat "[+-]\=\d\+\.\d*\(e[+-]\=\d\+\)\=\>"
  51. syn match postscrFloat "[+-]\=\.\d\+\(e[+-]\=\d\+\)\=\>"
  52. syn match postscrFloat "[+-]\=\d\+e[+-]\=\d\+\>"
  53. syn cluster postscrNumber contains=postscrInteger,postscrRadix,postscrFloat
  54. syn case match
  55. " Escaped characters
  56. syn match postscrSpecialChar contained "\\[nrtbf\\()]"
  57. syn match postscrSpecialCharError contained "\\[^nrtbf\\()]"he=e-1
  58. " Escaped octal characters
  59. syn match postscrSpecialChar contained "\\\o\{1,3}"
  60. " Strings
  61. " ASCII strings
  62. syn region postscrASCIIString start=+(+ end=+)+ skip=+([^)]*)+ contains=postscrSpecialChar,postscrSpecialCharError,@Spell
  63. syn match postscrASCIIStringError ")"
  64. " Hex strings
  65. syn match postscrHexCharError contained "[^<>[:xdigit:][:space:]]"
  66. syn region postscrHexString start=+<\($\|[^<]\)+ end=+>+ contains=postscrHexCharError
  67. syn match postscrHexString "<>"
  68. " ASCII85 strings
  69. syn match postscrASCII85CharError contained "[^<>\~!-uz[:space:]]"
  70. syn region postscrASCII85String start=+<\~+ end=+\~>+ contains=postscrASCII85CharError
  71. syn cluster postscrString contains=postscrASCIIString,postscrHexString,postscrASCII85String
  72. " Set default highlighting to level 2 - most common at the moment
  73. if !exists("postscr_level")
  74. let postscr_level = 2
  75. endif
  76. " PS level 1 operators - common to all levels (well ...)
  77. " Stack operators
  78. syn keyword postscrOperator pop exch dup copy index roll clear count mark cleartomark counttomark
  79. " Math operators
  80. syn keyword postscrMathOperator add div idiv mod mul sub abs neg ceiling floor round truncate sqrt atan cos
  81. syn keyword postscrMathOperator sin exp ln log rand srand rrand
  82. " Array operators
  83. syn match postscrOperator "[\[\]{}]"
  84. syn keyword postscrOperator array length get put getinterval putinterval astore aload copy
  85. syn keyword postscrRepeat forall
  86. " Dictionary operators
  87. syn keyword postscrOperator dict maxlength begin end def load store known where currentdict
  88. syn keyword postscrOperator countdictstack dictstack cleardictstack internaldict
  89. syn keyword postscrConstant $error systemdict userdict statusdict errordict
  90. " String operators
  91. syn keyword postscrOperator string anchorsearch search token
  92. " Logic operators
  93. syn keyword postscrLogicalOperator eq ne ge gt le lt and not or
  94. if exists("postscr_andornot_binaryop")
  95. syn keyword postscrBinaryOperator and or not
  96. else
  97. syn keyword postscrLogicalOperator and not or
  98. endif
  99. syn keyword postscrBinaryOperator xor bitshift
  100. syn keyword postscrBoolean true false
  101. " PS Type names
  102. syn keyword postscrConstant arraytype booleantype conditiontype dicttype filetype fonttype gstatetype
  103. syn keyword postscrConstant integertype locktype marktype nametype nulltype operatortype
  104. syn keyword postscrConstant packedarraytype realtype savetype stringtype
  105. " Control operators
  106. syn keyword postscrConditional if ifelse
  107. syn keyword postscrRepeat for repeat loop
  108. syn keyword postscrOperator exec exit stop stopped countexecstack execstack quit
  109. syn keyword postscrProcedure start
  110. " Object operators
  111. syn keyword postscrOperator type cvlit cvx xcheck executeonly noaccess readonly rcheck wcheck cvi cvn cvr
  112. syn keyword postscrOperator cvrs cvs
  113. " File operators
  114. syn keyword postscrOperator file closefile read write readhexstring writehexstring readstring writestring
  115. syn keyword postscrOperator bytesavailable flush flushfile resetfile status run currentfile print
  116. syn keyword postscrOperator stack pstack readline deletefile setfileposition fileposition renamefile
  117. syn keyword postscrRepeat filenameforall
  118. syn keyword postscrProcedure = ==
  119. " VM operators
  120. syn keyword postscrOperator save restore
  121. " Misc operators
  122. syn keyword postscrOperator bind null usertime executive echo realtime
  123. syn keyword postscrConstant product revision serialnumber version
  124. syn keyword postscrProcedure prompt
  125. " GState operators
  126. syn keyword postscrOperator gsave grestore grestoreall initgraphics setlinewidth setlinecap currentgray
  127. syn keyword postscrOperator currentlinejoin setmiterlimit currentmiterlimit setdash currentdash setgray
  128. syn keyword postscrOperator sethsbcolor currenthsbcolor setrgbcolor currentrgbcolor currentlinewidth
  129. syn keyword postscrOperator currentlinecap setlinejoin setcmykcolor currentcmykcolor
  130. " Device gstate operators
  131. syn keyword postscrOperator setscreen currentscreen settransfer currenttransfer setflat currentflat
  132. syn keyword postscrOperator currentblackgeneration setblackgeneration setundercolorremoval
  133. syn keyword postscrOperator setcolorscreen currentcolorscreen setcolortransfer currentcolortransfer
  134. syn keyword postscrOperator currentundercolorremoval
  135. " Matrix operators
  136. syn keyword postscrOperator matrix initmatrix identmatrix defaultmatrix currentmatrix setmatrix translate
  137. syn keyword postscrOperator concat concatmatrix transform dtransform itransform idtransform invertmatrix
  138. syn keyword postscrOperator scale rotate
  139. " Path operators
  140. syn keyword postscrOperator newpath currentpoint moveto rmoveto lineto rlineto arc arcn arcto curveto
  141. syn keyword postscrOperator closepath flattenpath reversepath strokepath charpath clippath pathbbox
  142. syn keyword postscrOperator initclip clip eoclip rcurveto
  143. syn keyword postscrRepeat pathforall
  144. " Painting operators
  145. syn keyword postscrOperator erasepage fill eofill stroke image imagemask colorimage
  146. " Device operators
  147. syn keyword postscrOperator showpage copypage nulldevice
  148. " Character operators
  149. syn keyword postscrProcedure findfont
  150. syn keyword postscrConstant FontDirectory ISOLatin1Encoding StandardEncoding
  151. syn keyword postscrOperator definefont scalefont makefont setfont currentfont show ashow
  152. syn keyword postscrOperator stringwidth kshow setcachedevice
  153. syn keyword postscrOperator setcharwidth widthshow awidthshow findencoding cshow rootfont setcachedevice2
  154. " Interpreter operators
  155. syn keyword postscrOperator vmstatus cachestatus setcachelimit
  156. " PS constants
  157. syn keyword postscrConstant contained Gray Red Green Blue All None DeviceGray DeviceRGB
  158. " PS Filters
  159. syn keyword postscrConstant contained ASCIIHexDecode ASCIIHexEncode ASCII85Decode ASCII85Encode LZWDecode
  160. syn keyword postscrConstant contained RunLengthDecode RunLengthEncode SubFileDecode NullEncode
  161. syn keyword postscrConstant contained GIFDecode PNGDecode LZWEncode
  162. " PS JPEG filter dictionary entries
  163. syn keyword postscrConstant contained DCTEncode DCTDecode Colors HSamples VSamples QuantTables QFactor
  164. syn keyword postscrConstant contained HuffTables ColorTransform
  165. " PS CCITT filter dictionary entries
  166. syn keyword postscrConstant contained CCITTFaxEncode CCITTFaxDecode Uncompressed K EndOfLine
  167. syn keyword postscrConstant contained Columns Rows EndOfBlock Blacks1 DamagedRowsBeforeError
  168. syn keyword postscrConstant contained EncodedByteAlign
  169. " PS Form dictionary entries
  170. syn keyword postscrConstant contained FormType XUID BBox Matrix PaintProc Implementation
  171. " PS Errors
  172. syn keyword postscrProcedure handleerror
  173. syn keyword postscrConstant contained configurationerror dictfull dictstackunderflow dictstackoverflow
  174. syn keyword postscrConstant contained execstackoverflow interrupt invalidaccess
  175. syn keyword postscrConstant contained invalidcontext invalidexit invalidfileaccess invalidfont
  176. syn keyword postscrConstant contained invalidid invalidrestore ioerror limitcheck nocurrentpoint
  177. syn keyword postscrConstant contained rangecheck stackoverflow stackunderflow syntaxerror timeout
  178. syn keyword postscrConstant contained typecheck undefined undefinedfilename undefinedresource
  179. syn keyword postscrConstant contained undefinedresult unmatchedmark unregistered VMerror
  180. if exists("postscr_fonts")
  181. " Font names
  182. syn keyword postscrConstant contained Symbol Times-Roman Times-Italic Times-Bold Times-BoldItalic
  183. syn keyword postscrConstant contained Helvetica Helvetica-Oblique Helvetica-Bold Helvetica-BoldOblique
  184. syn keyword postscrConstant contained Courier Courier-Oblique Courier-Bold Courier-BoldOblique
  185. endif
  186. if exists("postscr_display")
  187. " Display PS only operators
  188. syn keyword postscrOperator currentcontext fork join detach lock monitor condition wait notify yield
  189. syn keyword postscrOperator viewclip eoviewclip rectviewclip initviewclip viewclippath deviceinfo
  190. syn keyword postscrOperator sethalftonephase currenthalftonephase wtranslation defineusername
  191. endif
  192. " PS Character encoding names
  193. if exists("postscr_encodings")
  194. " Common encoding names
  195. syn keyword postscrConstant contained .notdef
  196. " Standard and ISO encoding names
  197. syn keyword postscrConstant contained space exclam quotedbl numbersign dollar percent ampersand quoteright
  198. syn keyword postscrConstant contained parenleft parenright asterisk plus comma hyphen period slash zero
  199. syn keyword postscrConstant contained one two three four five six seven eight nine colon semicolon less
  200. syn keyword postscrConstant contained equal greater question at
  201. syn keyword postscrConstant contained bracketleft backslash bracketright asciicircum underscore quoteleft
  202. syn keyword postscrConstant contained braceleft bar braceright asciitilde
  203. syn keyword postscrConstant contained exclamdown cent sterling fraction yen florin section currency
  204. syn keyword postscrConstant contained quotesingle quotedblleft guillemotleft guilsinglleft guilsinglright
  205. syn keyword postscrConstant contained fi fl endash dagger daggerdbl periodcentered paragraph bullet
  206. syn keyword postscrConstant contained quotesinglbase quotedblbase quotedblright guillemotright ellipsis
  207. syn keyword postscrConstant contained perthousand questiondown grave acute circumflex tilde macron breve
  208. syn keyword postscrConstant contained dotaccent dieresis ring cedilla hungarumlaut ogonek caron emdash
  209. syn keyword postscrConstant contained AE ordfeminine Lslash Oslash OE ordmasculine ae dotlessi lslash
  210. syn keyword postscrConstant contained oslash oe germandbls
  211. " The following are valid names, but are used as short procedure names in generated PS!
  212. " a b c d e f g h i j k l m n o p q r s t u v w x y z
  213. " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
  214. " Symbol encoding names
  215. syn keyword postscrConstant contained universal existential suchthat asteriskmath minus
  216. syn keyword postscrConstant contained congruent Alpha Beta Chi Delta Epsilon Phi Gamma Eta Iota theta1
  217. syn keyword postscrConstant contained Kappa Lambda Mu Nu Omicron Pi Theta Rho Sigma Tau Upsilon sigma1
  218. syn keyword postscrConstant contained Omega Xi Psi Zeta therefore perpendicular
  219. syn keyword postscrConstant contained radicalex alpha beta chi delta epsilon phi gamma eta iota phi1
  220. syn keyword postscrConstant contained kappa lambda mu nu omicron pi theta rho sigma tau upsilon omega1
  221. syn keyword postscrConstant contained Upsilon1 minute lessequal infinity club diamond heart spade
  222. syn keyword postscrConstant contained arrowboth arrowleft arrowup arrowright arrowdown degree plusminus
  223. syn keyword postscrConstant contained second greaterequal multiply proportional partialdiff divide
  224. syn keyword postscrConstant contained notequal equivalence approxequal arrowvertex arrowhorizex
  225. syn keyword postscrConstant contained aleph Ifraktur Rfraktur weierstrass circlemultiply circleplus
  226. syn keyword postscrConstant contained emptyset intersection union propersuperset reflexsuperset notsubset
  227. syn keyword postscrConstant contained propersubset reflexsubset element notelement angle gradient
  228. syn keyword postscrConstant contained registerserif copyrightserif trademarkserif radical dotmath
  229. syn keyword postscrConstant contained logicalnot logicaland logicalor arrowdblboth arrowdblleft arrowdblup
  230. syn keyword postscrConstant contained arrowdblright arrowdbldown omega xi psi zeta similar carriagereturn
  231. syn keyword postscrConstant contained lozenge angleleft registersans copyrightsans trademarksans summation
  232. syn keyword postscrConstant contained parenlefttp parenleftex parenleftbt bracketlefttp bracketleftex
  233. syn keyword postscrConstant contained bracketleftbt bracelefttp braceleftmid braceleftbt braceex euro
  234. syn keyword postscrConstant contained angleright integral integraltp integralex integralbt parenrighttp
  235. syn keyword postscrConstant contained parenrightex parenrightbt bracketrighttp bracketrightex
  236. syn keyword postscrConstant contained bracketrightbt bracerighttp bracerightmid bracerightbt
  237. " ISO Latin1 encoding names
  238. syn keyword postscrConstant contained brokenbar copyright registered twosuperior threesuperior
  239. syn keyword postscrConstant contained onesuperior onequarter onehalf threequarters
  240. syn keyword postscrConstant contained Agrave Aacute Acircumflex Atilde Adieresis Aring Ccedilla Egrave
  241. syn keyword postscrConstant contained Eacute Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis
  242. syn keyword postscrConstant contained Eth Ntilde Ograve Oacute Ocircumflex Otilde Odieresis Ugrave Uacute
  243. syn keyword postscrConstant contained Ucircumflex Udieresis Yacute Thorn
  244. syn keyword postscrConstant contained agrave aacute acircumflex atilde adieresis aring ccedilla egrave
  245. syn keyword postscrConstant contained eacute ecircumflex edieresis igrave iacute icircumflex idieresis
  246. syn keyword postscrConstant contained eth ntilde ograve oacute ocircumflex otilde odieresis ugrave uacute
  247. syn keyword postscrConstant contained ucircumflex udieresis yacute thorn ydieresis
  248. syn keyword postscrConstant contained zcaron exclamsmall Hungarumlautsmall dollaroldstyle dollarsuperior
  249. syn keyword postscrConstant contained ampersandsmall Acutesmall parenleftsuperior parenrightsuperior
  250. syn keyword postscrConstant contained twodotenleader onedotenleader zerooldstyle oneoldstyle twooldstyle
  251. syn keyword postscrConstant contained threeoldstyle fouroldstyle fiveoldstyle sixoldstyle sevenoldstyle
  252. syn keyword postscrConstant contained eightoldstyle nineoldstyle commasuperior
  253. syn keyword postscrConstant contained threequartersemdash periodsuperior questionsmall asuperior bsuperior
  254. syn keyword postscrConstant contained centsuperior dsuperior esuperior isuperior lsuperior msuperior
  255. syn keyword postscrConstant contained nsuperior osuperior rsuperior ssuperior tsuperior ff ffi ffl
  256. syn keyword postscrConstant contained parenleftinferior parenrightinferior Circumflexsmall hyphensuperior
  257. syn keyword postscrConstant contained Gravesmall Asmall Bsmall Csmall Dsmall Esmall Fsmall Gsmall Hsmall
  258. syn keyword postscrConstant contained Ismall Jsmall Ksmall Lsmall Msmall Nsmall Osmall Psmall Qsmall
  259. syn keyword postscrConstant contained Rsmall Ssmall Tsmall Usmall Vsmall Wsmall Xsmall Ysmall Zsmall
  260. syn keyword postscrConstant contained colonmonetary onefitted rupiah Tildesmall exclamdownsmall
  261. syn keyword postscrConstant contained centoldstyle Lslashsmall Scaronsmall Zcaronsmall Dieresissmall
  262. syn keyword postscrConstant contained Brevesmall Caronsmall Dotaccentsmall Macronsmall figuredash
  263. syn keyword postscrConstant contained hypheninferior Ogoneksmall Ringsmall Cedillasmall questiondownsmall
  264. syn keyword postscrConstant contained oneeighth threeeighths fiveeighths seveneighths onethird twothirds
  265. syn keyword postscrConstant contained zerosuperior foursuperior fivesuperior sixsuperior sevensuperior
  266. syn keyword postscrConstant contained eightsuperior ninesuperior zeroinferior oneinferior twoinferior
  267. syn keyword postscrConstant contained threeinferior fourinferior fiveinferior sixinferior seveninferior
  268. syn keyword postscrConstant contained eightinferior nineinferior centinferior dollarinferior periodinferior
  269. syn keyword postscrConstant contained commainferior Agravesmall Aacutesmall Acircumflexsmall
  270. syn keyword postscrConstant contained Atildesmall Adieresissmall Aringsmall AEsmall Ccedillasmall
  271. syn keyword postscrConstant contained Egravesmall Eacutesmall Ecircumflexsmall Edieresissmall Igravesmall
  272. syn keyword postscrConstant contained Iacutesmall Icircumflexsmall Idieresissmall Ethsmall Ntildesmall
  273. syn keyword postscrConstant contained Ogravesmall Oacutesmall Ocircumflexsmall Otildesmall Odieresissmall
  274. syn keyword postscrConstant contained OEsmall Oslashsmall Ugravesmall Uacutesmall Ucircumflexsmall
  275. syn keyword postscrConstant contained Udieresissmall Yacutesmall Thornsmall Ydieresissmall Black Bold Book
  276. syn keyword postscrConstant contained Light Medium Regular Roman Semibold
  277. " Sundry standard and expert encoding names
  278. syn keyword postscrConstant contained trademark Scaron Ydieresis Zcaron scaron softhyphen overscore
  279. syn keyword postscrConstant contained graybox Sacute Tcaron Zacute sacute tcaron zacute Aogonek Scedilla
  280. syn keyword postscrConstant contained Zdotaccent aogonek scedilla Lcaron lcaron zdotaccent Racute Abreve
  281. syn keyword postscrConstant contained Lacute Cacute Ccaron Eogonek Ecaron Dcaron Dcroat Nacute Ncaron
  282. syn keyword postscrConstant contained Ohungarumlaut Rcaron Uring Uhungarumlaut Tcommaaccent racute abreve
  283. syn keyword postscrConstant contained lacute cacute ccaron eogonek ecaron dcaron dcroat nacute ncaron
  284. syn keyword postscrConstant contained ohungarumlaut rcaron uring uhungarumlaut tcommaaccent Gbreve
  285. syn keyword postscrConstant contained Idotaccent gbreve blank apple
  286. endif
  287. " By default level 3 includes all level 2 operators
  288. if postscr_level == 2 || postscr_level == 3
  289. " Dictionary operators
  290. syn match postscrL2Operator "\(<<\|>>\)"
  291. syn keyword postscrL2Operator undef
  292. syn keyword postscrConstant globaldict shareddict
  293. " Device operators
  294. syn keyword postscrL2Operator setpagedevice currentpagedevice
  295. " Path operators
  296. syn keyword postscrL2Operator rectclip setbbox uappend ucache upath ustrokepath arct
  297. " Painting operators
  298. syn keyword postscrL2Operator rectfill rectstroke ufill ueofill ustroke
  299. " Array operators
  300. syn keyword postscrL2Operator currentpacking setpacking packedarray
  301. " Misc operators
  302. syn keyword postscrL2Operator languagelevel
  303. " Insideness operators
  304. syn keyword postscrL2Operator infill ineofill instroke inufill inueofill inustroke
  305. " GState operators
  306. syn keyword postscrL2Operator gstate setgstate currentgstate setcolor
  307. syn keyword postscrL2Operator setcolorspace currentcolorspace setstrokeadjust currentstrokeadjust
  308. syn keyword postscrL2Operator currentcolor
  309. " Device gstate operators
  310. syn keyword postscrL2Operator sethalftone currenthalftone setoverprint currentoverprint
  311. syn keyword postscrL2Operator setcolorrendering currentcolorrendering
  312. " Character operators
  313. syn keyword postscrL2Constant GlobalFontDirectory SharedFontDirectory
  314. syn keyword postscrL2Operator glyphshow selectfont
  315. syn keyword postscrL2Operator addglyph undefinefont xshow xyshow yshow
  316. " Pattern operators
  317. syn keyword postscrL2Operator makepattern setpattern execform
  318. " Resource operators
  319. syn keyword postscrL2Operator defineresource undefineresource findresource resourcestatus
  320. syn keyword postscrL2Repeat resourceforall
  321. " File operators
  322. syn keyword postscrL2Operator filter printobject writeobject setobjectformat currentobjectformat
  323. " VM operators
  324. syn keyword postscrL2Operator currentshared setshared defineuserobject execuserobject undefineuserobject
  325. syn keyword postscrL2Operator gcheck scheck startjob currentglobal setglobal
  326. syn keyword postscrConstant UserObjects
  327. " Interpreter operators
  328. syn keyword postscrL2Operator setucacheparams setvmthreshold ucachestatus setsystemparams
  329. syn keyword postscrL2Operator setuserparams currentuserparams setcacheparams currentcacheparams
  330. syn keyword postscrL2Operator currentdevparams setdevparams vmreclaim currentsystemparams
  331. " PS2 constants
  332. syn keyword postscrConstant contained DeviceCMYK Pattern Indexed Separation Cyan Magenta Yellow Black
  333. syn keyword postscrConstant contained CIEBasedA CIEBasedABC CIEBasedDEF CIEBasedDEFG
  334. " PS2 $error dictionary entries
  335. syn keyword postscrConstant contained newerror errorname command errorinfo ostack estack dstack
  336. syn keyword postscrConstant contained recordstacks binary
  337. " PS2 Category dictionary
  338. syn keyword postscrConstant contained DefineResource UndefineResource FindResource ResourceStatus
  339. syn keyword postscrConstant contained ResourceForAll Category InstanceType ResourceFileName
  340. " PS2 Category names
  341. syn keyword postscrConstant contained Font Encoding Form Pattern ProcSet ColorSpace Halftone
  342. syn keyword postscrConstant contained ColorRendering Filter ColorSpaceFamily Emulator IODevice
  343. syn keyword postscrConstant contained ColorRenderingType FMapType FontType FormType HalftoneType
  344. syn keyword postscrConstant contained ImageType PatternType Category Generic
  345. " PS2 pagedevice dictionary entries
  346. syn keyword postscrConstant contained PageSize MediaColor MediaWeight MediaType InputAttributes ManualFeed
  347. syn keyword postscrConstant contained OutputType OutputAttributes NumCopies Collate Duplex Tumble
  348. syn keyword postscrConstant contained Separations HWResolution Margins NegativePrint MirrorPrint
  349. syn keyword postscrConstant contained CutMedia AdvanceMedia AdvanceDistance ImagingBBox
  350. syn keyword postscrConstant contained Policies Install BeginPage EndPage PolicyNotFound PolicyReport
  351. syn keyword postscrConstant contained ManualSize OutputFaceUp Jog
  352. syn keyword postscrConstant contained Bind BindDetails Booklet BookletDetails CollateDetails
  353. syn keyword postscrConstant contained DeviceRenderingInfo ExitJamRecovery Fold FoldDetails Laminate
  354. syn keyword postscrConstant contained ManualFeedTimeout Orientation OutputPage
  355. syn keyword postscrConstant contained PostRenderingEnhance PostRenderingEnhanceDetails
  356. syn keyword postscrConstant contained PreRenderingEnhance PreRenderingEnhanceDetails
  357. syn keyword postscrConstant contained Signature SlipSheet Staple StapleDetails Trim
  358. syn keyword postscrConstant contained ProofSet REValue PrintQuality ValuesPerColorComponent AntiAlias
  359. " PS2 PDL resource entries
  360. syn keyword postscrConstant contained Selector LanguageFamily LanguageVersion
  361. " PS2 halftone dictionary entries
  362. syn keyword postscrConstant contained HalftoneType HalftoneName
  363. syn keyword postscrConstant contained AccurateScreens ActualAngle Xsquare Ysquare AccurateFrequency
  364. syn keyword postscrConstant contained Frequency SpotFunction Angle Width Height Thresholds
  365. syn keyword postscrConstant contained RedFrequency RedSpotFunction RedAngle RedWidth RedHeight
  366. syn keyword postscrConstant contained GreenFrequency GreenSpotFunction GreenAngle GreenWidth GreenHeight
  367. syn keyword postscrConstant contained BlueFrequency BlueSpotFunction BlueAngle BlueWidth BlueHeight
  368. syn keyword postscrConstant contained GrayFrequency GrayAngle GraySpotFunction GrayWidth GrayHeight
  369. syn keyword postscrConstant contained GrayThresholds BlueThresholds GreenThresholds RedThresholds
  370. syn keyword postscrConstant contained TransferFunction
  371. " PS2 CSR dictionaries
  372. syn keyword postscrConstant contained RangeA DecodeA MatrixA RangeABC DecodeABC MatrixABC BlackPoint
  373. syn keyword postscrConstant contained RangeLMN DecodeLMN MatrixLMN WhitePoint RangeDEF DecodeDEF RangeHIJ
  374. syn keyword postscrConstant contained RangeDEFG DecodeDEFG RangeHIJK Table
  375. " PS2 CRD dictionaries
  376. syn keyword postscrConstant contained ColorRenderingType EncodeLMB EncodeABC RangePQR MatrixPQR
  377. syn keyword postscrConstant contained AbsoluteColorimetric RelativeColorimetric Saturation Perceptual
  378. syn keyword postscrConstant contained TransformPQR RenderTable
  379. " PS2 Pattern dictionary
  380. syn keyword postscrConstant contained PatternType PaintType TilingType XStep YStep
  381. " PS2 Image dictionary
  382. syn keyword postscrConstant contained ImageType ImageMatrix MultipleDataSources DataSource
  383. syn keyword postscrConstant contained BitsPerComponent Decode Interpolate
  384. " PS2 Font dictionaries
  385. syn keyword postscrConstant contained FontType FontMatrix FontName FontInfo LanguageLevel WMode Encoding
  386. syn keyword postscrConstant contained UniqueID StrokeWidth Metrics Metrics2 CDevProc CharStrings Private
  387. syn keyword postscrConstant contained FullName Notice version ItalicAngle isFixedPitch UnderlinePosition
  388. syn keyword postscrConstant contained FMapType Encoding FDepVector PrefEnc EscChar ShiftOut ShiftIn
  389. syn keyword postscrConstant contained WeightVector Blend $Blend CIDFontType sfnts CIDSystemInfo CodeMap
  390. syn keyword postscrConstant contained CMap CIDFontName CIDSystemInfo UIDBase CIDDevProc CIDCount
  391. syn keyword postscrConstant contained CIDMapOffset FDArray FDBytes GDBytes GlyphData GlyphDictionary
  392. syn keyword postscrConstant contained SDBytes SubrMapOffset SubrCount BuildGlyph CIDMap FID MIDVector
  393. syn keyword postscrConstant contained Ordering Registry Supplement CMapName CMapVersion UIDOffset
  394. syn keyword postscrConstant contained SubsVector UnderlineThickness FamilyName FontBBox CurMID
  395. syn keyword postscrConstant contained Weight
  396. " PS2 User paramters
  397. syn keyword postscrConstant contained MaxFontItem MinFontCompress MaxUPathItem MaxFormItem MaxPatternItem
  398. syn keyword postscrConstant contained MaxScreenItem MaxOpStack MaxDictStack MaxExecStack MaxLocalVM
  399. syn keyword postscrConstant contained VMReclaim VMThreshold
  400. " PS2 System paramters
  401. syn keyword postscrConstant contained SystemParamsPassword StartJobPassword BuildTime ByteOrder RealFormat
  402. syn keyword postscrConstant contained MaxFontCache CurFontCache MaxOutlineCache CurOutlineCache
  403. syn keyword postscrConstant contained MaxUPathCache CurUPathCache MaxFormCache CurFormCache
  404. syn keyword postscrConstant contained MaxPatternCache CurPatternCache MaxScreenStorage CurScreenStorage
  405. syn keyword postscrConstant contained MaxDisplayList CurDisplayList
  406. " PS2 LZW Filters
  407. syn keyword postscrConstant contained Predictor
  408. " Paper Size operators
  409. syn keyword postscrL2Operator letter lettersmall legal ledger 11x17 a4 a3 a4small b5 note
  410. " Paper Tray operators
  411. syn keyword postscrL2Operator lettertray legaltray ledgertray a3tray a4tray b5tray 11x17tray
  412. " SCC compatibility operators
  413. syn keyword postscrL2Operator sccbatch sccinteractive setsccbatch setsccinteractive
  414. " Page duplexing operators
  415. syn keyword postscrL2Operator duplexmode firstside newsheet setduplexmode settumble tumble
  416. " Device compatibility operators
  417. syn keyword postscrL2Operator devdismount devformat devmount devstatus
  418. syn keyword postscrL2Repeat devforall
  419. " Imagesetter compatibility operators
  420. syn keyword postscrL2Operator accuratescreens checkscreen pagemargin pageparams setaccuratescreens setpage
  421. syn keyword postscrL2Operator setpagemargin setpageparams
  422. " Misc compatability operators
  423. syn keyword postscrL2Operator appletalktype buildtime byteorder checkpassword defaulttimeouts diskonline
  424. syn keyword postscrL2Operator diskstatus manualfeed manualfeedtimeout margins mirrorprint pagecount
  425. syn keyword postscrL2Operator pagestackorder printername processcolors sethardwareiomode setjobtimeout
  426. syn keyword postscrL2Operator setpagestockorder setprintername setresolution doprinterrors dostartpage
  427. syn keyword postscrL2Operator hardwareiomode initializedisk jobname jobtimeout ramsize realformat resolution
  428. syn keyword postscrL2Operator setdefaulttimeouts setdoprinterrors setdostartpage setdosysstart
  429. syn keyword postscrL2Operator setuserdiskpercent softwareiomode userdiskpercent waittimeout
  430. syn keyword postscrL2Operator setsoftwareiomode dosysstart emulate setmargins setmirrorprint
  431. endif " PS2 highlighting
  432. if postscr_level == 3
  433. " Shading operators
  434. syn keyword postscrL3Operator setsmoothness currentsmoothness shfill
  435. " Clip operators
  436. syn keyword postscrL3Operator clipsave cliprestore
  437. " Pagedevive operators
  438. syn keyword postscrL3Operator setpage setpageparams
  439. " Device gstate operators
  440. syn keyword postscrL3Operator findcolorrendering
  441. " Font operators
  442. syn keyword postscrL3Operator composefont
  443. " PS LL3 Output device resource entries
  444. syn keyword postscrConstant contained DeviceN TrappingDetailsType
  445. " PS LL3 pagdevice dictionary entries
  446. syn keyword postscrConstant contained DeferredMediaSelection ImageShift InsertSheet LeadingEdge MaxSeparations
  447. syn keyword postscrConstant contained MediaClass MediaPosition OutputDevice PageDeviceName PageOffset ProcessColorModel
  448. syn keyword postscrConstant contained RollFedMedia SeparationColorNames SeparationOrder Trapping TrappingDetails
  449. syn keyword postscrConstant contained TraySwitch UseCIEColor
  450. syn keyword postscrConstant contained ColorantDetails ColorantName ColorantType NeutralDensity TrappingOrder
  451. syn keyword postscrConstant contained ColorantSetName
  452. " PS LL3 trapping dictionary entries
  453. syn keyword postscrConstant contained BlackColorLimit BlackDensityLimit BlackWidth ColorantZoneDetails
  454. syn keyword postscrConstant contained SlidingTrapLimit StepLimit TrapColorScaling TrapSetName TrapWidth
  455. syn keyword postscrConstant contained ImageResolution ImageToObjectTrapping ImageTrapPlacement
  456. syn keyword postscrConstant contained StepLimit TrapColorScaling Enabled ImageInternalTrapping
  457. " PS LL3 filters and entries
  458. syn keyword postscrConstant contained ReusableStreamDecode CloseSource CloseTarget UnitSize LowBitFirst
  459. syn keyword postscrConstant contained FlateEncode FlateDecode DecodeParams Intent AsyncRead
  460. " PS LL3 halftone dictionary entries
  461. syn keyword postscrConstant contained Height2 Width2
  462. " PS LL3 function dictionary entries
  463. syn keyword postscrConstant contained FunctionType Domain Range Order BitsPerSample Encode Size C0 C1 N
  464. syn keyword postscrConstant contained Functions Bounds
  465. " PS LL3 image dictionary entries
  466. syn keyword postscrConstant contained InterleaveType MaskDict DataDict MaskColor
  467. " PS LL3 Pattern and shading dictionary entries
  468. syn keyword postscrConstant contained Shading ShadingType Background ColorSpace Coords Extend Function
  469. syn keyword postscrConstant contained VerticesPerRow BitsPerCoordinate BitsPerFlag
  470. " PS LL3 image dictionary entries
  471. syn keyword postscrConstant contained XOrigin YOrigin UnpaintedPath PixelCopy
  472. " PS LL3 colorrendering procedures
  473. syn keyword postscrProcedure GetHalftoneName GetPageDeviceName GetSubstituteCRD
  474. " PS LL3 CIDInit procedures
  475. syn keyword postscrProcedure beginbfchar beginbfrange begincidchar begincidrange begincmap begincodespacerange
  476. syn keyword postscrProcedure beginnotdefchar beginnotdefrange beginrearrangedfont beginusematrix
  477. syn keyword postscrProcedure endbfchar endbfrange endcidchar endcidrange endcmap endcodespacerange
  478. syn keyword postscrProcedure endnotdefchar endnotdefrange endrearrangedfont endusematrix
  479. syn keyword postscrProcedure StartData usefont usecmp
  480. " PS LL3 Trapping procedures
  481. syn keyword postscrProcedure settrapparams currenttrapparams settrapzone
  482. " PS LL3 BitmapFontInit procedures
  483. syn keyword postscrProcedure removeall removeglyphs
  484. " PS LL3 Font names
  485. if exists("postscr_fonts")
  486. syn keyword postscrConstant contained AlbertusMT AlbertusMT-Italic AlbertusMT-Light Apple-Chancery Apple-ChanceryCE
  487. syn keyword postscrConstant contained AntiqueOlive-Roman AntiqueOlive-Italic AntiqueOlive-Bold AntiqueOlive-Compact
  488. syn keyword postscrConstant contained AntiqueOliveCE-Roman AntiqueOliveCE-Italic AntiqueOliveCE-Bold AntiqueOliveCE-Compact
  489. syn keyword postscrConstant contained ArialMT Arial-ItalicMT Arial-LightMT Arial-BoldMT Arial-BoldItalicMT
  490. syn keyword postscrConstant contained ArialCE ArialCE-Italic ArialCE-Light ArialCE-Bold ArialCE-BoldItalic
  491. syn keyword postscrConstant contained AvantGarde-Book AvantGarde-BookOblique AvantGarde-Demi AvantGarde-DemiOblique
  492. syn keyword postscrConstant contained AvantGardeCE-Book AvantGardeCE-BookOblique AvantGardeCE-Demi AvantGardeCE-DemiOblique
  493. syn keyword postscrConstant contained Bodoni Bodoni-Italic Bodoni-Bold Bodoni-BoldItalic Bodoni-Poster Bodoni-PosterCompressed
  494. syn keyword postscrConstant contained BodoniCE BodoniCE-Italic BodoniCE-Bold BodoniCE-BoldItalic BodoniCE-Poster BodoniCE-PosterCompressed
  495. syn keyword postscrConstant contained Bookman-Light Bookman-LightItalic Bookman-Demi Bookman-DemiItalic
  496. syn keyword postscrConstant contained BookmanCE-Light BookmanCE-LightItalic BookmanCE-Demi BookmanCE-DemiItalic
  497. syn keyword postscrConstant contained Carta Chicago ChicagoCE Clarendon Clarendon-Light Clarendon-Bold
  498. syn keyword postscrConstant contained ClarendonCE ClarendonCE-Light ClarendonCE-Bold CooperBlack CooperBlack-Italic
  499. syn keyword postscrConstant contained Copperplate-ThirtyTwoBC CopperPlate-ThirtyThreeBC Coronet-Regular CoronetCE-Regular
  500. syn keyword postscrConstant contained CourierCE CourierCE-Oblique CourierCE-Bold CourierCE-BoldOblique
  501. syn keyword postscrConstant contained Eurostile Eurostile-Bold Eurostile-ExtendedTwo Eurostile-BoldExtendedTwo
  502. syn keyword postscrConstant contained Eurostile EurostileCE-Bold EurostileCE-ExtendedTwo EurostileCE-BoldExtendedTwo
  503. syn keyword postscrConstant contained Geneva GenevaCE GillSans GillSans-Italic GillSans-Bold GillSans-BoldItalic GillSans-BoldCondensed
  504. syn keyword postscrConstant contained GillSans-Light GillSans-LightItalic GillSans-ExtraBold
  505. syn keyword postscrConstant contained GillSansCE-Roman GillSansCE-Italic GillSansCE-Bold GillSansCE-BoldItalic GillSansCE-BoldCondensed
  506. syn keyword postscrConstant contained GillSansCE-Light GillSansCE-LightItalic GillSansCE-ExtraBold
  507. syn keyword postscrConstant contained Goudy Goudy-Italic Goudy-Bold Goudy-BoldItalic Goudy-ExtraBould
  508. syn keyword postscrConstant contained HelveticaCE HelveticaCE-Oblique HelveticaCE-Bold HelveticaCE-BoldOblique
  509. syn keyword postscrConstant contained Helvetica-Condensed Helvetica-Condensed-Oblique Helvetica-Condensed-Bold Helvetica-Condensed-BoldObl
  510. syn keyword postscrConstant contained HelveticaCE-Condensed HelveticaCE-Condensed-Oblique HelveticaCE-Condensed-Bold
  511. syn keyword postscrConstant contained HelveticaCE-Condensed-BoldObl Helvetica-Narrow Helvetica-Narrow-Oblique Helvetica-Narrow-Bold
  512. syn keyword postscrConstant contained Helvetica-Narrow-BoldOblique HelveticaCE-Narrow HelveticaCE-Narrow-Oblique HelveticaCE-Narrow-Bold
  513. syn keyword postscrConstant contained HelveticaCE-Narrow-BoldOblique HoeflerText-Regular HoeflerText-Italic HoeflerText-Black
  514. syn keyword postscrConstant contained HoeflerText-BlackItalic HoeflerText-Ornaments HoeflerTextCE-Regular HoeflerTextCE-Italic
  515. syn keyword postscrConstant contained HoeflerTextCE-Black HoeflerTextCE-BlackItalic
  516. syn keyword postscrConstant contained JoannaMT JoannaMT-Italic JoannaMT-Bold JoannaMT-BoldItalic
  517. syn keyword postscrConstant contained JoannaMTCE JoannaMTCE-Italic JoannaMTCE-Bold JoannaMTCE-BoldItalic
  518. syn keyword postscrConstant contained LetterGothic LetterGothic-Slanted LetterGothic-Bold LetterGothic-BoldSlanted
  519. syn keyword postscrConstant contained LetterGothicCE LetterGothicCE-Slanted LetterGothicCE-Bold LetterGothicCE-BoldSlanted
  520. syn keyword postscrConstant contained LubalinGraph-Book LubalinGraph-BookOblique LubalinGraph-Demi LubalinGraph-DemiOblique
  521. syn keyword postscrConstant contained LubalinGraphCE-Book LubalinGraphCE-BookOblique LubalinGraphCE-Demi LubalinGraphCE-DemiOblique
  522. syn keyword postscrConstant contained Marigold Monaco MonacoCE MonaLisa-Recut Oxford Symbol Tekton
  523. syn keyword postscrConstant contained NewCennturySchlbk-Roman NewCenturySchlbk-Italic NewCenturySchlbk-Bold NewCenturySchlbk-BoldItalic
  524. syn keyword postscrConstant contained NewCenturySchlbkCE-Roman NewCenturySchlbkCE-Italic NewCenturySchlbkCE-Bold
  525. syn keyword postscrConstant contained NewCenturySchlbkCE-BoldItalic NewYork NewYorkCE
  526. syn keyword postscrConstant contained Optima Optima-Italic Optima-Bold Optima-BoldItalic
  527. syn keyword postscrConstant contained OptimaCE OptimaCE-Italic OptimaCE-Bold OptimaCE-BoldItalic
  528. syn keyword postscrConstant contained Palatino-Roman Palatino-Italic Palatino-Bold Palatino-BoldItalic
  529. syn keyword postscrConstant contained PalatinoCE-Roman PalatinoCE-Italic PalatinoCE-Bold PalatinoCE-BoldItalic
  530. syn keyword postscrConstant contained StempelGaramond-Roman StempelGaramond-Italic StempelGaramond-Bold StempelGaramond-BoldItalic
  531. syn keyword postscrConstant contained StempelGaramondCE-Roman StempelGaramondCE-Italic StempelGaramondCE-Bold StempelGaramondCE-BoldItalic
  532. syn keyword postscrConstant contained TimesCE-Roman TimesCE-Italic TimesCE-Bold TimesCE-BoldItalic
  533. syn keyword postscrConstant contained TimesNewRomanPSMT TimesNewRomanPS-ItalicMT TimesNewRomanPS-BoldMT TimesNewRomanPS-BoldItalicMT
  534. syn keyword postscrConstant contained TimesNewRomanCE TimesNewRomanCE-Italic TimesNewRomanCE-Bold TimesNewRomanCE-BoldItalic
  535. syn keyword postscrConstant contained Univers Univers-Oblique Univers-Bold Univers-BoldOblique
  536. syn keyword postscrConstant contained UniversCE-Medium UniversCE-Oblique UniversCE-Bold UniversCE-BoldOblique
  537. syn keyword postscrConstant contained Univers-Light Univers-LightOblique UniversCE-Light UniversCE-LightOblique
  538. syn keyword postscrConstant contained Univers-Condensed Univers-CondensedOblique Univers-CondensedBold Univers-CondensedBoldOblique
  539. syn keyword postscrConstant contained UniversCE-Condensed UniversCE-CondensedOblique UniversCE-CondensedBold UniversCE-CondensedBoldOblique
  540. syn keyword postscrConstant contained Univers-Extended Univers-ExtendedObl Univers-BoldExt Univers-BoldExtObl
  541. syn keyword postscrConstant contained UniversCE-Extended UniversCE-ExtendedObl UniversCE-BoldExt UniversCE-BoldExtObl
  542. syn keyword postscrConstant contained Wingdings-Regular ZapfChancery-MediumItalic ZapfChanceryCE-MediumItalic ZapfDingBats
  543. endif " Font names
  544. endif " PS LL3 highlighting
  545. if exists("postscr_ghostscript")
  546. " GS gstate operators
  547. syn keyword postscrGSOperator .setaccuratecurves .currentaccuratecurves .setclipoutside
  548. syn keyword postscrGSOperator .setdashadapt .currentdashadapt .setdefaultmatrix .setdotlength
  549. syn keyword postscrGSOperator .currentdotlength .setfilladjust2 .currentfilladjust2
  550. syn keyword postscrGSOperator .currentclipoutside .setcurvejoin .currentcurvejoin
  551. syn keyword postscrGSOperator .setblendmode .currentblendmode .setopacityalpha .currentopacityalpha .setshapealpha .currentshapealpha
  552. syn keyword postscrGSOperator .setlimitclamp .currentlimitclamp .setoverprintmode .currentoverprintmode
  553. " GS path operators
  554. syn keyword postscrGSOperator .dashpath .rectappend
  555. " GS painting operators
  556. syn keyword postscrGSOperator .setrasterop .currentrasterop .setsourcetransparent
  557. syn keyword postscrGSOperator .settexturetransparent .currenttexturetransparent
  558. syn keyword postscrGSOperator .currentsourcetransparent
  559. " GS character operators
  560. syn keyword postscrGSOperator .charboxpath .type1execchar %Type1BuildChar %Type1BuildGlyph
  561. " GS mathematical operators
  562. syn keyword postscrGSMathOperator arccos arcsin
  563. " GS dictionary operators
  564. syn keyword postscrGSOperator .dicttomark .forceput .forceundef .knownget .setmaxlength
  565. " GS byte and string operators
  566. syn keyword postscrGSOperator .type1encrypt .type1decrypt
  567. syn keyword postscrGSOperator .bytestring .namestring .stringmatch
  568. " GS relational operators (seem like math ones to me!)
  569. syn keyword postscrGSMathOperator max min
  570. " GS file operators
  571. syn keyword postscrGSOperator findlibfile unread writeppmfile
  572. syn keyword postscrGSOperator .filename .fileposition .peekstring .unread
  573. " GS vm operators
  574. syn keyword postscrGSOperator .forgetsave
  575. " GS device operators
  576. syn keyword postscrGSOperator copydevice .getdevice makeimagedevice makewordimagedevice copyscanlines
  577. syn keyword postscrGSOperator setdevice currentdevice getdeviceprops putdeviceprops flushpage
  578. syn keyword postscrGSOperator finddevice findprotodevice .getbitsrect
  579. " GS misc operators
  580. syn keyword postscrGSOperator getenv .makeoperator .setdebug .oserrno .oserror .execn
  581. " GS rendering stack operators
  582. syn keyword postscrGSOperator .begintransparencygroup .discardtransparencygroup .endtransparencygroup
  583. syn keyword postscrGSOperator .begintransparencymask .discardtransparencymask .endtransparencymask .inittransparencymask
  584. syn keyword postscrGSOperator .settextknockout .currenttextknockout
  585. " GS filters
  586. syn keyword postscrConstant contained BCPEncode BCPDecode eexecEncode eexecDecode PCXDecode
  587. syn keyword postscrConstant contained PixelDifferenceEncode PixelDifferenceDecode
  588. syn keyword postscrConstant contained PNGPredictorDecode TBCPEncode TBCPDecode zlibEncode
  589. syn keyword postscrConstant contained zlibDecode PNGPredictorEncode PFBDecode
  590. syn keyword postscrConstant contained MD5Encode
  591. " GS filter keys
  592. syn keyword postscrConstant contained InitialCodeLength FirstBitLowOrder BlockData DecodedByteAlign
  593. " GS device parameters
  594. syn keyword postscrConstant contained BitsPerPixel .HWMargins HWSize Name GrayValues
  595. syn keyword postscrConstant contained ColorValues TextAlphaBits GraphicsAlphaBits BufferSpace
  596. syn keyword postscrConstant contained OpenOutputFile PageCount BandHeight BandWidth BandBufferSpace
  597. syn keyword postscrConstant contained ViewerPreProcess GreenValues BlueValues OutputFile
  598. syn keyword postscrConstant contained MaxBitmap RedValues
  599. endif " GhostScript highlighting
  600. " Define the default highlighting.
  601. " Only when an item doesn't have highlighting yet
  602. hi def link postscrComment Comment
  603. hi def link postscrConstant Constant
  604. hi def link postscrString String
  605. hi def link postscrASCIIString postscrString
  606. hi def link postscrHexString postscrString
  607. hi def link postscrASCII85String postscrString
  608. hi def link postscrNumber Number
  609. hi def link postscrInteger postscrNumber
  610. hi def link postscrHex postscrNumber
  611. hi def link postscrRadix postscrNumber
  612. hi def link postscrFloat Float
  613. hi def link postscrBoolean Boolean
  614. hi def link postscrIdentifier Identifier
  615. hi def link postscrProcedure Function
  616. hi def link postscrName Statement
  617. hi def link postscrConditional Conditional
  618. hi def link postscrRepeat Repeat
  619. hi def link postscrL2Repeat postscrRepeat
  620. hi def link postscrOperator Operator
  621. hi def link postscrL1Operator postscrOperator
  622. hi def link postscrL2Operator postscrOperator
  623. hi def link postscrL3Operator postscrOperator
  624. hi def link postscrMathOperator postscrOperator
  625. hi def link postscrLogicalOperator postscrOperator
  626. hi def link postscrBinaryOperator postscrOperator
  627. hi def link postscrDSCComment SpecialComment
  628. hi def link postscrSpecialChar SpecialChar
  629. hi def link postscrTodo Todo
  630. hi def link postscrError Error
  631. hi def link postscrSpecialCharError postscrError
  632. hi def link postscrASCII85CharError postscrError
  633. hi def link postscrHexCharError postscrError
  634. hi def link postscrASCIIStringError postscrError
  635. hi def link postscrIdentifierError postscrError
  636. if exists("postscr_ghostscript")
  637. hi def link postscrGSOperator postscrOperator
  638. hi def link postscrGSMathOperator postscrMathOperator
  639. else
  640. hi def link postscrGSOperator postscrError
  641. hi def link postscrGSMathOperator postscrError
  642. endif
  643. let b:current_syntax = "postscr"
  644. " vim: ts=8