home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / mac / vim55rt.sit / runtime / syntax / postscr.vim < prev    next >
Encoding:
Text File  |  1999-09-25  |  43.2 KB  |  752 lines  |  [TEXT/VIM!]

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