Mercurial > vim
comparison runtime/syntax/postscr.vim @ 1622:149d8b46404c
updated for version 7.2a
author | vimboss |
---|---|
date | Tue, 24 Jun 2008 22:09:24 +0000 |
parents | 3fc0f57ecb91 |
children | 43efa4f5a8ea |
comparison
equal
deleted
inserted
replaced
1621:82b5078be2dd | 1622:149d8b46404c |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: PostScript - all Levels, selectable | 2 " Language: PostScript - all Levels, selectable |
3 " Maintainer: Mike Williams <mrw@eandem.co.uk> | 3 " Maintainer: Mike Williams <mrw@eandem.co.uk> |
4 " Filenames: *.ps,*.eps | 4 " Filenames: *.ps,*.eps |
5 " Last Change: 27th June 2002 | 5 " Last Change: 31st October 2007 |
6 " URL: http://www.eandem.co.uk/mrw/vim | 6 " URL: http://www.eandem.co.uk/mrw/vim |
7 " | 7 " |
8 " Options Flags: | 8 " Options Flags: |
9 " postscr_level - language level to use for highligting (1, 2, or 3) | 9 " postscr_level - language level to use for highligting (1, 2, or 3) |
10 " postscr_display - include display PS operators | 10 " postscr_display - include display PS operators |
11 " postscr_ghostscript - include GS extensions | 11 " postscr_ghostscript - include GS extensions |
12 " postscr_fonts - highlight standard font names (a lot for PS 3) | 12 " postscr_fonts - highlight standard font names (a lot for PS 3) |
13 " postscr_encodings - highlight encoding names (there are a lot) | 13 " postscr_encodings - highlight encoding names (there are a lot) |
14 " postscr_andornot_binary - highlight and, or, and not as binary operators (not logical) | 14 " postscr_andornot_binary - highlight and, or, and not as binary operators (not logical) |
15 " | 15 " |
16 " For version 5.x: Clear all syntax items | 16 " For version 5.x: Clear all syntax items |
17 " For version 6.x: Quit when a syntax file was already loaded | 17 " For version 6.x: Quit when a syntax file was already loaded |
18 if version < 600 | 18 if version < 600 |
19 syntax clear | 19 syntax clear |
33 | 33 |
34 " Yer trusty old TODO highlghter! | 34 " Yer trusty old TODO highlghter! |
35 syn keyword postscrTodo contained TODO | 35 syn keyword postscrTodo contained TODO |
36 | 36 |
37 " Comment | 37 " Comment |
38 syn match postscrComment "%.*$" contains=postscrTodo | 38 syn match postscrComment "%.*$" contains=postscrTodo,@Spell |
39 " DSC comment start line (NB: defines DSC level, not PS level!) | 39 " DSC comment start line (NB: defines DSC level, not PS level!) |
40 syn match postscrDSCComment "^%!PS-Adobe-\d\+\.\d\+\s*.*$" | 40 syn match postscrDSCComment "^%!PS-Adobe-\d\+\.\d\+\s*.*$" |
41 " DSC comment line (no check on possible comments - another language!) | 41 " DSC comment line (no check on possible comments - another language!) |
42 syn match postscrDSCComment "^%%\u\+.*$" contains=@postscrString,@postscrNumber | 42 syn match postscrDSCComment "^%%\u\+.*$" contains=@postscrString,@postscrNumber,@Spell |
43 " DSC continuation line (no check that previous line is DSC comment) | 43 " DSC continuation line (no check that previous line is DSC comment) |
44 syn match postscrDSCComment "^%%+ *.*$" contains=@postscrString,@postscrNumber | 44 syn match postscrDSCComment "^%%+ *.*$" contains=@postscrString,@postscrNumber,@Spell |
45 | 45 |
46 " Names | 46 " Names |
47 syn match postscrName "\k\+" | 47 syn match postscrName "\k\+" |
48 | 48 |
49 " Identifiers | 49 " Identifiers |
50 syn match postscrIdentifierError "/\{1,2}[[:space:]\[\]{}]"me=e-1 | 50 syn match postscrIdentifierError "/\{1,2}[[:space:]\[\]{}]"me=e-1 |
51 syn match postscrIdentifier "/\{1,2}\k\+" contains=postscrConstant,postscrBoolean,postscrCustConstant | 51 syn match postscrIdentifier "/\{1,2}\k\+" contains=postscrConstant,postscrBoolean,postscrCustConstant |
52 | 52 |
53 " Numbers | 53 " Numbers |
54 syn case ignore | 54 syn case ignore |
55 " In file hex data - usually complete lines | 55 " In file hex data - usually complete lines |
56 syn match postscrHex "^[[:xdigit:]][[:xdigit:][:space:]]*$" | 56 syn match postscrHex "^[[:xdigit:]][[:xdigit:][:space:]]*$" |
57 "syn match postscrHex "\<\x\{2,}\>" | 57 "syn match postscrHex "\<\x\{2,}\>" |
58 " Integers | 58 " Integers |
59 syn match postscrInteger "\<[+-]\=\d\+\>" | 59 syn match postscrInteger "\<[+-]\=\d\+\>" |
60 " Radix | 60 " Radix |
61 syn match postscrRadix "\d\+#\x\+\>" | 61 syn match postscrRadix "\d\+#\x\+\>" |
62 " Reals - upper and lower case e is allowed | 62 " Reals - upper and lower case e is allowed |
63 syn match postscrFloat "[+-]\=\d\+\.\>" | 63 syn match postscrFloat "[+-]\=\d\+\.\>" |
64 syn match postscrFloat "[+-]\=\d\+\.\d*\(e[+-]\=\d\+\)\=\>" | 64 syn match postscrFloat "[+-]\=\d\+\.\d*\(e[+-]\=\d\+\)\=\>" |
65 syn match postscrFloat "[+-]\=\.\d\+\(e[+-]\=\d\+\)\=\>" | 65 syn match postscrFloat "[+-]\=\.\d\+\(e[+-]\=\d\+\)\=\>" |
66 syn match postscrFloat "[+-]\=\d\+e[+-]\=\d\+\>" | 66 syn match postscrFloat "[+-]\=\d\+e[+-]\=\d\+\>" |
67 syn cluster postscrNumber contains=postscrInteger,postscrRadix,postscrFloat | 67 syn cluster postscrNumber contains=postscrInteger,postscrRadix,postscrFloat |
68 syn case match | 68 syn case match |
69 | 69 |
70 " Escaped characters | 70 " Escaped characters |
71 syn match postscrSpecialChar contained "\\[nrtbf\\()]" | 71 syn match postscrSpecialChar contained "\\[nrtbf\\()]" |
72 syn match postscrSpecialCharError contained "\\[^nrtbf\\()]"he=e-1 | 72 syn match postscrSpecialCharError contained "\\[^nrtbf\\()]"he=e-1 |
73 " Escaped octal characters | 73 " Escaped octal characters |
74 syn match postscrSpecialChar contained "\\\o\{1,3}" | 74 syn match postscrSpecialChar contained "\\\o\{1,3}" |
75 | 75 |
76 " Strings | 76 " Strings |
77 " ASCII strings | 77 " ASCII strings |
78 syn region postscrASCIIString start=+(+ end=+)+ skip=+([^)]*)+ contains=postscrSpecialChar,postscrSpecialCharError | 78 syn region postscrASCIIString start=+(+ end=+)+ skip=+([^)]*)+ contains=postscrSpecialChar,postscrSpecialCharError,@Spell |
79 syn match postscrASCIIStringError ")" | |
79 " Hex strings | 80 " Hex strings |
80 syn match postscrHexCharError contained "[^<>[:xdigit:][:space:]]" | 81 syn match postscrHexCharError contained "[^<>[:xdigit:][:space:]]" |
81 syn region postscrHexString start=+<\($\|[^<]\)+ end=+>+ contains=postscrHexCharError | 82 syn region postscrHexString start=+<\($\|[^<]\)+ end=+>+ contains=postscrHexCharError |
82 syn match postscrHexString "<>" | 83 syn match postscrHexString "<>" |
83 " ASCII85 strings | 84 " ASCII85 strings |
340 | 341 |
341 | 342 |
342 " By default level 3 includes all level 2 operators | 343 " By default level 3 includes all level 2 operators |
343 if postscr_level == 2 || postscr_level == 3 | 344 if postscr_level == 2 || postscr_level == 3 |
344 " Dictionary operators | 345 " Dictionary operators |
345 syn match postscrOperator "\(<<\|>>\)" | 346 syn match postscrL2Operator "\(<<\|>>\)" |
346 syn keyword postscrOperator undef | 347 syn keyword postscrL2Operator undef |
347 syn keyword postscrConstant globaldict shareddict | 348 syn keyword postscrConstant globaldict shareddict |
348 | 349 |
349 " Device operators | 350 " Device operators |
350 syn keyword postscrOperator setpagedevice currentpagedevice | 351 syn keyword postscrL2Operator setpagedevice currentpagedevice |
351 | 352 |
352 " Path operators | 353 " Path operators |
353 syn keyword postscrOperator rectclip setbbox uappend ucache upath ustrokepath arct | 354 syn keyword postscrL2Operator rectclip setbbox uappend ucache upath ustrokepath arct |
354 | 355 |
355 " Painting operators | 356 " Painting operators |
356 syn keyword postscrOperator rectfill rectstroke ufill ueofill ustroke | 357 syn keyword postscrL2Operator rectfill rectstroke ufill ueofill ustroke |
357 | 358 |
358 " Array operators | 359 " Array operators |
359 syn keyword postscrOperator currentpacking setpacking packedarray | 360 syn keyword postscrL2Operator currentpacking setpacking packedarray |
360 | 361 |
361 " Misc operators | 362 " Misc operators |
362 syn keyword postscrOperator languagelevel | 363 syn keyword postscrL2Operator languagelevel |
363 | 364 |
364 " Insideness operators | 365 " Insideness operators |
365 syn keyword postscrOperator infill ineofill instroke inufill inueofill inustroke | 366 syn keyword postscrL2Operator infill ineofill instroke inufill inueofill inustroke |
366 | 367 |
367 " GState operators | 368 " GState operators |
368 syn keyword postscrOperator gstate setgstate currentgstate setcolor | 369 syn keyword postscrL2Operator gstate setgstate currentgstate setcolor |
369 syn keyword postscrOperator setcolorspace currentcolorspace setstrokeadjust currentstrokeadjust | 370 syn keyword postscrL2Operator setcolorspace currentcolorspace setstrokeadjust currentstrokeadjust |
370 syn keyword postscrOperator currentcolor | 371 syn keyword postscrL2Operator currentcolor |
371 | 372 |
372 " Device gstate operators | 373 " Device gstate operators |
373 syn keyword postscrOperator sethalftone currenthalftone setoverprint currentoverprint | 374 syn keyword postscrL2Operator sethalftone currenthalftone setoverprint currentoverprint |
374 syn keyword postscrOperator setcolorrendering currentcolorrendering | 375 syn keyword postscrL2Operator setcolorrendering currentcolorrendering |
375 | 376 |
376 " Character operators | 377 " Character operators |
377 syn keyword postscrConstant GlobalFontDirectory SharedFontDirectory | 378 syn keyword postscrL2Constant GlobalFontDirectory SharedFontDirectory |
378 syn keyword postscrOperator glyphshow selectfont | 379 syn keyword postscrL2Operator glyphshow selectfont |
379 syn keyword postscrOperator addglyph undefinefont xshow xyshow yshow | 380 syn keyword postscrL2Operator addglyph undefinefont xshow xyshow yshow |
380 | 381 |
381 " Pattern operators | 382 " Pattern operators |
382 syn keyword postscrOperator makepattern setpattern execform | 383 syn keyword postscrL2Operator makepattern setpattern execform |
383 | 384 |
384 " Resource operators | 385 " Resource operators |
385 syn keyword postscrOperator defineresource undefineresource findresource resourcestatus | 386 syn keyword postscrL2Operator defineresource undefineresource findresource resourcestatus |
386 syn keyword postscrRepeat resourceforall | 387 syn keyword postscrL2Repeat resourceforall |
387 | 388 |
388 " File operators | 389 " File operators |
389 syn keyword postscrOperator filter printobject writeobject setobjectformat currentobjectformat | 390 syn keyword postscrL2Operator filter printobject writeobject setobjectformat currentobjectformat |
390 | 391 |
391 " VM operators | 392 " VM operators |
392 syn keyword postscrOperator currentshared setshared defineuserobject execuserobject undefineuserobject | 393 syn keyword postscrL2Operator currentshared setshared defineuserobject execuserobject undefineuserobject |
393 syn keyword postscrOperator gcheck scheck startjob currentglobal setglobal | 394 syn keyword postscrL2Operator gcheck scheck startjob currentglobal setglobal |
394 syn keyword postscrConstant UserObjects | 395 syn keyword postscrConstant UserObjects |
395 | 396 |
396 " Interpreter operators | 397 " Interpreter operators |
397 syn keyword postscrOperator setucacheparams setvmthreshold ucachestatus setsystemparams | 398 syn keyword postscrL2Operator setucacheparams setvmthreshold ucachestatus setsystemparams |
398 syn keyword postscrOperator setuserparams currentuserparams setcacheparams currentcacheparams | 399 syn keyword postscrL2Operator setuserparams currentuserparams setcacheparams currentcacheparams |
399 syn keyword postscrOperator currentdevparams setdevparams vmreclaim currentsystemparams | 400 syn keyword postscrL2Operator currentdevparams setdevparams vmreclaim currentsystemparams |
400 | 401 |
401 " PS2 constants | 402 " PS2 constants |
402 syn keyword postscrConstant contained DeviceCMYK Pattern Indexed Separation Cyan Magenta Yellow Black | 403 syn keyword postscrConstant contained DeviceCMYK Pattern Indexed Separation Cyan Magenta Yellow Black |
403 syn keyword postscrConstant contained CIEBasedA CIEBasedABC CIEBasedDEF CIEBasedDEFG | 404 syn keyword postscrConstant contained CIEBasedA CIEBasedABC CIEBasedDEF CIEBasedDEFG |
404 | 405 |
489 | 490 |
490 " PS2 LZW Filters | 491 " PS2 LZW Filters |
491 syn keyword postscrConstant contained Predictor | 492 syn keyword postscrConstant contained Predictor |
492 | 493 |
493 " Paper Size operators | 494 " Paper Size operators |
494 syn keyword postscrOperator letter lettersmall legal ledger 11x17 a4 a3 a4small b5 note | 495 syn keyword postscrL2Operator letter lettersmall legal ledger 11x17 a4 a3 a4small b5 note |
495 | 496 |
496 " Paper Tray operators | 497 " Paper Tray operators |
497 syn keyword postscrOperator lettertray legaltray ledgertray a3tray a4tray b5tray 11x17tray | 498 syn keyword postscrL2Operator lettertray legaltray ledgertray a3tray a4tray b5tray 11x17tray |
498 | 499 |
499 " SCC compatibility operators | 500 " SCC compatibility operators |
500 syn keyword postscrOperator sccbatch sccinteractive setsccbatch setsccinteractive | 501 syn keyword postscrL2Operator sccbatch sccinteractive setsccbatch setsccinteractive |
501 | 502 |
502 " Page duplexing operators | 503 " Page duplexing operators |
503 syn keyword postscrOperator duplexmode firstside newsheet setduplexmode settumble tumble | 504 syn keyword postscrL2Operator duplexmode firstside newsheet setduplexmode settumble tumble |
504 | 505 |
505 " Device compatability operators | 506 " Device compatability operators |
506 syn keyword postscrOperator devdismount devformat devmount devstatus | 507 syn keyword postscrL2Operator devdismount devformat devmount devstatus |
507 syn keyword postscrRepeat devforall | 508 syn keyword postscrL2Repeat devforall |
508 | 509 |
509 " Imagesetter compatability operators | 510 " Imagesetter compatability operators |
510 syn keyword postscrOperator accuratescreens checkscreen pagemargin pageparams setaccuratescreens setpage | 511 syn keyword postscrL2Operator accuratescreens checkscreen pagemargin pageparams setaccuratescreens setpage |
511 syn keyword postscrOperator setpagemargin setpageparams | 512 syn keyword postscrL2Operator setpagemargin setpageparams |
512 | 513 |
513 " Misc compatability operators | 514 " Misc compatability operators |
514 syn keyword postscrOperator appletalktype buildtime byteorder checkpassword defaulttimeouts diskonline | 515 syn keyword postscrL2Operator appletalktype buildtime byteorder checkpassword defaulttimeouts diskonline |
515 syn keyword postscrOperator diskstatus manualfeed manualfeedtimeout margins mirrorprint pagecount | 516 syn keyword postscrL2Operator diskstatus manualfeed manualfeedtimeout margins mirrorprint pagecount |
516 syn keyword postscrOperator pagestackorder printername processcolors sethardwareiomode setjobtimeout | 517 syn keyword postscrL2Operator pagestackorder printername processcolors sethardwareiomode setjobtimeout |
517 syn keyword postscrOperator setpagestockorder setprintername setresolution doprinterrors dostartpage | 518 syn keyword postscrL2Operator setpagestockorder setprintername setresolution doprinterrors dostartpage |
518 syn keyword postscrOperator hardwareiomode initializedisk jobname jobtimeout ramsize realformat resolution | 519 syn keyword postscrL2Operator hardwareiomode initializedisk jobname jobtimeout ramsize realformat resolution |
519 syn keyword postscrOperator setdefaulttimeouts setdoprinterrors setdostartpage setdosysstart | 520 syn keyword postscrL2Operator setdefaulttimeouts setdoprinterrors setdostartpage setdosysstart |
520 syn keyword postscrOperator setuserdiskpercent softwareiomode userdiskpercent waittimeout | 521 syn keyword postscrL2Operator setuserdiskpercent softwareiomode userdiskpercent waittimeout |
521 syn keyword postscrOperator setsoftwareiomode dosysstart emulate setmargins setmirrorprint | 522 syn keyword postscrL2Operator setsoftwareiomode dosysstart emulate setmargins setmirrorprint |
522 | 523 |
523 endif " PS2 highlighting | 524 endif " PS2 highlighting |
524 | 525 |
525 if postscr_level == 3 | 526 if postscr_level == 3 |
526 " Shading operators | 527 " Shading operators |
527 syn keyword postscrOperator setsmoothness currentsmoothness shfill | 528 syn keyword postscrL3Operator setsmoothness currentsmoothness shfill |
528 | 529 |
529 " Clip operators | 530 " Clip operators |
530 syn keyword postscrOperator clipsave cliprestore | 531 syn keyword postscrL3Operator clipsave cliprestore |
531 | 532 |
532 " Pagedevive operators | 533 " Pagedevive operators |
533 syn keyword postscrOperator setpage setpageparams | 534 syn keyword postscrL3Operator setpage setpageparams |
534 | 535 |
535 " Device gstate operators | 536 " Device gstate operators |
536 syn keyword postscrOperator findcolorrendering | 537 syn keyword postscrL3Operator findcolorrendering |
537 | 538 |
538 " Font operators | 539 " Font operators |
539 syn keyword postscrOperator composefont | 540 syn keyword postscrL3Operator composefont |
540 | 541 |
541 " PS LL3 Output device resource entries | 542 " PS LL3 Output device resource entries |
542 syn keyword postscrConstant contained DeviceN TrappingDetailsType | 543 syn keyword postscrConstant contained DeviceN TrappingDetailsType |
543 | 544 |
544 " PS LL3 pagdevice dictionary entries | 545 " PS LL3 pagdevice dictionary entries |
656 endif " PS LL3 highlighting | 657 endif " PS LL3 highlighting |
657 | 658 |
658 | 659 |
659 if exists("postscr_ghostscript") | 660 if exists("postscr_ghostscript") |
660 " GS gstate operators | 661 " GS gstate operators |
661 syn keyword postscrOperator .setaccuratecurves .currentaccuratecurves .setclipoutside | 662 syn keyword postscrGSOperator .setaccuratecurves .currentaccuratecurves .setclipoutside |
662 syn keyword postscrOperator .setdashadapt .currentdashadapt .setdefaultmatrix .setdotlength | 663 syn keyword postscrGSOperator .setdashadapt .currentdashadapt .setdefaultmatrix .setdotlength |
663 syn keyword postscrOperator .currentdotlength .setfilladjust2 .currentfilladjust2 | 664 syn keyword postscrGSOperator .currentdotlength .setfilladjust2 .currentfilladjust2 |
664 syn keyword postscrOperator .currentclipoutside .setcurvejoin .currentcurvejoin | 665 syn keyword postscrGSOperator .currentclipoutside .setcurvejoin .currentcurvejoin |
665 syn keyword postscrOperator .setblendmode .currentblendmode .setopacityalpha .currentopacityalpha .setshapealpha .currentshapealpha | 666 syn keyword postscrGSOperator .setblendmode .currentblendmode .setopacityalpha .currentopacityalpha .setshapealpha .currentshapealpha |
666 syn keyword postscrOperator .setlimitclamp .currentlimitclamp .setoverprintmode .currentoverprintmode | 667 syn keyword postscrGSOperator .setlimitclamp .currentlimitclamp .setoverprintmode .currentoverprintmode |
667 | 668 |
668 " GS path operators | 669 " GS path operators |
669 syn keyword postscrOperator .dashpath .rectappend | 670 syn keyword postscrGSOperator .dashpath .rectappend |
670 | 671 |
671 " GS painting operators | 672 " GS painting operators |
672 syn keyword postscrOperator .setrasterop .currentrasterop .setsourcetransparent | 673 syn keyword postscrGSOperator .setrasterop .currentrasterop .setsourcetransparent |
673 syn keyword postscrOperator .settexturetransparent .currenttexturetransparent | 674 syn keyword postscrGSOperator .settexturetransparent .currenttexturetransparent |
674 syn keyword postscrOperator .currentsourcetransparent | 675 syn keyword postscrGSOperator .currentsourcetransparent |
675 | 676 |
676 " GS character operators | 677 " GS character operators |
677 syn keyword postscrOperator .charboxpath .type1execchar %Type1BuildChar %Type1BuildGlyph | 678 syn keyword postscrGSOperator .charboxpath .type1execchar %Type1BuildChar %Type1BuildGlyph |
678 | 679 |
679 " GS mathematical operators | 680 " GS mathematical operators |
680 syn keyword postscrMathOperator arccos arcsin | 681 syn keyword postscrGSMathOperator arccos arcsin |
681 | 682 |
682 " GS dictionary operators | 683 " GS dictionary operators |
683 syn keyword postscrOperator .dicttomark .forceput .forceundef .knownget .setmaxlength | 684 syn keyword postscrGSOperator .dicttomark .forceput .forceundef .knownget .setmaxlength |
684 | 685 |
685 " GS byte and string operators | 686 " GS byte and string operators |
686 syn keyword postscrOperator .type1encrypt .type1decrypt | 687 syn keyword postscrGSOperator .type1encrypt .type1decrypt |
687 syn keyword postscrOperator .bytestring .namestring .stringmatch | 688 syn keyword postscrGSOperator .bytestring .namestring .stringmatch |
688 | 689 |
689 " GS relational operators (seem like math ones to me!) | 690 " GS relational operators (seem like math ones to me!) |
690 syn keyword postscrMathOperator max min | 691 syn keyword postscrGSMathOperator max min |
691 | 692 |
692 " GS file operators | 693 " GS file operators |
693 syn keyword postscrOperator findlibfile unread writeppmfile | 694 syn keyword postscrGSOperator findlibfile unread writeppmfile |
694 syn keyword postscrOperator .filename .fileposition .peekstring .unread | 695 syn keyword postscrGSOperator .filename .fileposition .peekstring .unread |
695 | 696 |
696 " GS vm operators | 697 " GS vm operators |
697 syn keyword postscrOperator .forgetsave | 698 syn keyword postscrGSOperator .forgetsave |
698 | 699 |
699 " GS device operators | 700 " GS device operators |
700 syn keyword postscrOperator copydevice .getdevice makeimagedevice makewordimagedevice copyscanlines | 701 syn keyword postscrGSOperator copydevice .getdevice makeimagedevice makewordimagedevice copyscanlines |
701 syn keyword postscrOperator setdevice currentdevice getdeviceprops putdeviceprops flushpage | 702 syn keyword postscrGSOperator setdevice currentdevice getdeviceprops putdeviceprops flushpage |
702 syn keyword postscrOperator finddevice findprotodevice .getbitsrect | 703 syn keyword postscrGSOperator finddevice findprotodevice .getbitsrect |
703 | 704 |
704 " GS misc operators | 705 " GS misc operators |
705 syn keyword postscrOperator getenv .makeoperator .setdebug .oserrno .oserror .execn | 706 syn keyword postscrGSOperator getenv .makeoperator .setdebug .oserrno .oserror .execn |
706 | 707 |
707 " GS rendering stack operators | 708 " GS rendering stack operators |
708 syn keyword postscrOperator .begintransparencygroup .discardtransparencygroup .endtransparencygroup | 709 syn keyword postscrGSOperator .begintransparencygroup .discardtransparencygroup .endtransparencygroup |
709 syn keyword postscrOperator .begintransparencymask .discardtransparencymask .endtransparencymask .inittransparencymask | 710 syn keyword postscrGSOperator .begintransparencymask .discardtransparencymask .endtransparencymask .inittransparencymask |
710 syn keyword postscrOperator .settextknockout .currenttextknockout | 711 syn keyword postscrGSOperator .settextknockout .currenttextknockout |
711 | 712 |
712 " GS filters | 713 " GS filters |
713 syn keyword postscrConstant contained BCPEncode BCPDecode eexecEncode eexecDecode PCXDecode | 714 syn keyword postscrConstant contained BCPEncode BCPDecode eexecEncode eexecDecode PCXDecode |
714 syn keyword postscrConstant contained PixelDifferenceEncode PixelDifferenceDecode | 715 syn keyword postscrConstant contained PixelDifferenceEncode PixelDifferenceDecode |
715 syn keyword postscrConstant contained PNGPredictorDecode TBCPEncode TBCPDecode zlibEncode | 716 syn keyword postscrConstant contained PNGPredictorDecode TBCPEncode TBCPDecode zlibEncode |
737 command -nargs=+ HiLink hi link <args> | 738 command -nargs=+ HiLink hi link <args> |
738 else | 739 else |
739 command -nargs=+ HiLink hi def link <args> | 740 command -nargs=+ HiLink hi def link <args> |
740 endif | 741 endif |
741 | 742 |
742 HiLink postscrComment Comment | 743 HiLink postscrComment Comment |
743 | 744 |
744 HiLink postscrConstant Constant | 745 HiLink postscrConstant Constant |
745 HiLink postscrString String | 746 HiLink postscrString String |
746 HiLink postscrASCIIString postscrString | 747 HiLink postscrASCIIString postscrString |
747 HiLink postscrHexString postscrString | 748 HiLink postscrHexString postscrString |
748 HiLink postscrASCII85String postscrString | 749 HiLink postscrASCII85String postscrString |
749 HiLink postscrNumber Number | 750 HiLink postscrNumber Number |
750 HiLink postscrInteger postscrNumber | 751 HiLink postscrInteger postscrNumber |
751 HiLink postscrHex postscrNumber | 752 HiLink postscrHex postscrNumber |
752 HiLink postscrRadix postscrNumber | 753 HiLink postscrRadix postscrNumber |
753 HiLink postscrFloat Float | 754 HiLink postscrFloat Float |
754 HiLink postscrBoolean Boolean | 755 HiLink postscrBoolean Boolean |
755 | 756 |
756 HiLink postscrIdentifier Identifier | 757 HiLink postscrIdentifier Identifier |
757 HiLink postscrProcedure Function | 758 HiLink postscrProcedure Function |
758 | 759 |
759 HiLink postscrName Statement | 760 HiLink postscrName Statement |
760 HiLink postscrConditional Conditional | 761 HiLink postscrConditional Conditional |
761 HiLink postscrRepeat Repeat | 762 HiLink postscrRepeat Repeat |
762 HiLink postscrOperator Operator | 763 HiLink postscrL2Repeat postscrRepeat |
763 HiLink postscrMathOperator postscrOperator | 764 HiLink postscrOperator Operator |
765 HiLink postscrL1Operator postscrOperator | |
766 HiLink postscrL2Operator postscrOperator | |
767 HiLink postscrL3Operator postscrOperator | |
768 HiLink postscrMathOperator postscrOperator | |
764 HiLink postscrLogicalOperator postscrOperator | 769 HiLink postscrLogicalOperator postscrOperator |
765 HiLink postscrBinaryOperator postscrOperator | 770 HiLink postscrBinaryOperator postscrOperator |
766 | 771 |
767 HiLink postscrDSCComment SpecialComment | 772 HiLink postscrDSCComment SpecialComment |
768 HiLink postscrSpecialChar SpecialChar | 773 HiLink postscrSpecialChar SpecialChar |
769 | 774 |
770 HiLink postscrTodo Todo | 775 HiLink postscrTodo Todo |
771 | 776 |
772 HiLink postscrError Error | 777 HiLink postscrError Error |
773 HiLink postscrSpecialCharError postscrError | 778 HiLink postscrSpecialCharError postscrError |
774 HiLink postscrASCII85CharError postscrError | 779 HiLink postscrASCII85CharError postscrError |
775 HiLink postscrHexCharError postscrError | 780 HiLink postscrHexCharError postscrError |
781 HiLink postscrASCIIStringError postscrError | |
776 HiLink postscrIdentifierError postscrError | 782 HiLink postscrIdentifierError postscrError |
783 | |
784 if exists("postscr_ghostscript") | |
785 HiLink postscrGSOperator postscrOperator | |
786 HiLink postscrGSMathOperator postscrMathOperator | |
787 else | |
788 HiLink postscrGSOperator postscrError | |
789 HiLink postscrGSMathOperator postscrError | |
790 endif | |
777 | 791 |
778 delcommand HiLink | 792 delcommand HiLink |
779 endif | 793 endif |
780 | 794 |
781 let b:current_syntax = "postscr" | 795 let b:current_syntax = "postscr" |