home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / OpenLinux 2.3 CD.iso / live / usr / share / vim / syntax / postscr.vim < prev    next >
Encoding:
Text File  |  1999-08-10  |  1.6 KB  |  48 lines

  1. " Vim syntax file
  2. " Language:    PostScript
  3. " Maintainer:    Mario Eusebio <bio@dq.fct.unl.pt>
  4. " Last change:    1997 April 25
  5.  
  6. " Remove any old syntax stuff hanging around
  7. syn clear
  8.  
  9. syn case match
  10.  
  11. syn keyword postscrTodo contained    TODO
  12.  
  13. " String
  14. syn region  postscrString    start=+(+  end=+)+
  15.  
  16. syn match  postscrDelimiter    "[{}]"
  17.  
  18. syn match  postscrComment        "%.*$" contains=postscrTodo
  19.  
  20. syn keyword postscrFunction    add aload and arc arcn arcto array
  21. syn keyword postscrFunction    ashow awidthshow begin charpath
  22. syn keyword postscrFunction    clear closepath copy copy copypage
  23. syn keyword postscrFunction    def definefont dict div dup end eq
  24. syn keyword postscrFunction    exch exec exit false fill findfont
  25. syn keyword postscrFunction    for forall ge get grestore gsave
  26. syn keyword postscrFunction    gt idiv if ifelse kshow le length
  27. syn keyword postscrFunction    lineto loop lt makefont maxlength
  28. syn keyword postscrFunction    moveto mul ne neg newpath not or
  29. syn keyword postscrFunction    pop put repeat restore rlineto
  30. syn keyword postscrFunction    rmoveto roll rotate round save
  31. syn keyword postscrFunction    scale search setgray setlinewidth
  32. syn keyword postscrFunction    show showpage keyword string stroke
  33. syn keyword postscrFunction    sub translate true widthshow xor
  34.  
  35. if !exists("did_postscr_syntax_inits")
  36.   let did_postscr_syntax_inits = 1
  37.   " The default methods for highlighting.  Can be overridden later
  38.   hi link postscrTodo        Todo
  39.   hi link postscrString        String
  40.   hi link postscrFunction    Statement
  41.   hi link postscrComment        Comment
  42.   hi link postscrDelimiter    Identifier
  43. endif
  44.  
  45. let b:current_syntax = "postscr"
  46.  
  47. " vim: ts=8
  48.