! Syntax Highlighting Patterns for PostScript Level 2 ! ! Dec 9, 1998 version 0.22, tweaks to Number (radix pattern), added string ! escape characters; added = and == to Operator list. ! Dec 8, 1998 version 0.21, fixes for Literal, Number, Procedure and ! Array patterns; bugs found by Chris Ross ! Dec 3, 1998 version 0.2, incorporated patterns by Steven C. Kapp ! , Questra Corp, which were posted on the NEdit Users ! mailing list; added literals, array markers, procedure markers, ! numbers and DSC comments. ! Dec 2, 1998 version 0.1, written by Himanshu Gohel, gohel@acm.org ! ! BEWARE - there is one very long line (3000+ chars) containing PS Operators ! ! In NEdit Version 5.0.1 and beyond, load this pattern by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. ! ! In version 5.0, without -import, you must edit your .nedit file by hand and ! add the contents of each resource below to the corresponding list in your ! .nedit file. Be sure to separate new entries with \n, and continue resource ! strings by escaping all newlines within a resource value with \ (backslash), ! leaving only the last line of the resource value not ending in \. ! nedit.languageModes: PostScript:.ps .PS .eps .EPS .epsf .epsi:"%!"::::: nedit.highlightPatterns: \ PostScript:1:0{\n\ Operator:"<(\ =|==|ASCII85Decode|ASCII85Encode|ASCIIHexDecode|ASCIIHexEncode|CCITTFaxDecode|CCITTFaxEncode|CIEBasedA|CIEBasedABC|Courier|Courier-Bold|Courier-BoldOblique|Courier-Oblique|DCTDecode|DCTEncode|DeviceCMYK|DeviceGray|DeviceRGB|FontDirectory|GlobalFontDirectory|Helvetica|Helvetica-Bold|Helvetica-BoldOblique|Helvetica-Oblique|ISOLatin1Encoding|Indexed|LZWDecode|LZWEncode|NullEncode|Pattern|RunLengthDecode|RunLengthEncode|Separation|SharedFontDirectory|StandardEncoding|SubFileDecode|Symbol|Times-Bold|Times-BoldItalic|Times-Italic|Times-Roman|UserObjects|abs|add|aload|anchorsearch|and|arc|arcn|arct|arcto|array|ashow|astore|atan|awidthshow|banddevice|begin|bind|bitshift|bytesavailable|cachestatus|ceiling|charpath|clear|cleardictstack|cleartomark|clip|clippath|closefile|closepath|colorimage|concat|concatmatrix|condition|copy|copypage|cos|count|countdictstack|countexecstack|counttomark|cshow|currentblackgeneration|currentcacheparams|currentcmykcolor|currentcolor|currentcolorrendering|currentcolorscreen|currentcolorspace|currentcolortransfer|currentcontext|currentdash|currentdevparams|currentdict|currentfile|currentflat|currentfont|currentglobal|currentgray|currentgstate|currenthalftone|currenthalftonephase|currenthsbcolor|currentlinecap|currentlinejoin|currentlinewidth|currentmatrix|currentmiterlimit|currentobjectformat|currentoverprint|currentpacking|currentpagedevice|currentpoint|currentrgbcolor|currentscreen|currentshared|currentstrokeadjust|currentsystemparams|currenttransfer|currentundercolorremoval|currentuserparams|curveto|cvi|cvlit|cvn|cvr|cvrs|cvs|cvx|def|defaultmatrix|definefont|defineresource|defineusername|defineuserobject|deletefile|detach|deviceinfo|dict|dictstack|div|dtransform|dup|echo|end|eoclip|eofill|eoviewclip|eq|erasepage|errordict|exch|exec|execform|execstack|execuserobject|executeonly|exit|exp|false|file|filenameforall|fileposition|fill|filter|findencoding|findfont|findresource|flattenpath|floor|flush|flushfile|for|forall|fork|framedevice|gcheck|ge|get|getinterval|globaldict|glyphshow|grestore|grestoreall|gsave|gstate|gt|handleerror|identmatrix|idiv|idtransform|if|ifelse|image|imagemask|index|ineofill|infill|initclip|initgraphics|initmatrix|initviewclip|instroke|inueofill|inufill|inustroke|invertmatrix|itransform|join|known|kshow|languagelevel|le|length|lineto|ln|load|lock|log|loop|lt|makefont|makepattern|mark|matrix|maxlength|mod|monitor|moveto|mul|ne|neg|newpath|noaccess|not|notify|null|nulldevice|or|packedarray|pathbbox|pathforall|pop|print|printobject|product|pstack|put|putinterval|quit|rand|rcheck|rcurveto|read|readhexstring|readline|readonly|readstring|realtime|rectclip|rectfill|rectstroke|rectviewclip|renamefile|renderbands|repeat|resetfile|resourceforall|resourcestatus|restore|reversepath|revision|rlineto|rmoveto|roll|rootfont|rotate|round|rrand|run|save|scale|scalefont|scheck|search|selectfont|serialnumber|setbbox|setblackgeneration|setcachedevice|setcachedevice2|setcachelimit|setcacheparams|setcharwidth|setcmykcolor|setcolor|setcolorrendering|setcolorscreen|setcolorspace|setcolortransfer|setdash|setdevparams|setfileposition|setflat|setfont|setglobal|setgray|setgstate|sethalftone|sethalftonephase|sethsbcolor|setlinecap|setlinejoin|setlinewidth|setmatrix|setmiterlimit|setobjectformat|setoverprint|setpacking|setpagedevice|setpattern|setrgbcolor|setscreen|setshared|setstrokeadjust|setsystemparams|settransfer|setucacheparams|setundercolorremoval|setuserparams|setvmthreshold|shareddict|show|showpage|sin|sqrt|srand|stack|startjob|status|statusdict|stop|stopped|store|string|stringwidth|stroke|strokepath|sub|systemdict|token|transform|translate|true|truncate|type|uappend|ucache|ucachestatus|ueofill|ufill|undef|undefinefont|undefineresource|undefineuserobject|upath|userdict|usertime|ustroke|ustrokepath|version|viewclip|viewclippath|vmreclaim|vmstatus|wait|wcheck|where|widthshow|write|writehexstring|writeobject|writestring|wtranslation|xcheck|xor|xshow|xyshow|yield|yshow\ )>":::Keyword::D\n\ DSCcomment:"^%[%|!]":"$"::Preprocessor::\n\ Comment:"%":"$"::Comment::\n\ Literal:"/[^{}\\(\\)\\<\\>\\[\\]\\f\\n\\r\\t ]*":::Text Key::\n\ string:"\\(":"\\)"::String::\n\ string esc chars:"\\\\(n|r|t|b|f|\\\\|\\(|\\)|[0-9][0-9]?[0-9]?)?":::String1:string:\n\ ASCII 85 string:"\\<~":"~\\>"::String::\n\ ASCII 85 esc chars:"\\\\\\n":::String1:ASCII 85 string:\n\ ASCII 85 OK chars:"[!-u,z]":::String:ASCII 85 string:\n\ ASCII 85 bad chars:"[^(!-u|z|\\\\)]":::Plain:ASCII 85 string:\n\ hex string:"\\<":"\\>"::String::\n\ hex esc chars:"\\\\\\n":::String1:hex string:\n\ hex OK chars:"[0-9,a-f,A-F]":::String:hex string:\n\ hex bad chars:"[^(0-9|a-f|A-F)]":::Plain:hex string:\n\ Number:"<(((3[0-6]|[1-2][0-9]|[2-9])#[0-9a-zA-Z]*)|(((\\+|-)?[0-9]+\\.?[0-9]*)|((\\+|-)?\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)>":::Numeric Const::\n\ Procedure:"[{}]":::Subroutine::\n\ Array:"[\\[\\]]":::Storage Type::\n\ }