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

  1. " Vim syntax file
  2. " Language:    Elm Filter rules
  3. " Maintainer:    Dr. Charles E. Campbell, Jr. <Charles.Campbell@gsfc.nasa.gov>
  4. " Last change:    January 5, 1998
  5.  
  6. " remove any old syntax stuff hanging around
  7. syn clear
  8.  
  9. syn keyword    elmfiltAction    delete execute executec forward leave save savecopy
  10. syn match    elmfiltArg    "[^\\]%[&0-9]"lc=1    contained
  11. syn keyword    elmfiltCond    lines always subject sender from to lines received
  12. syn region    elmfiltMatch    start="/" skip="\\/" end="/"
  13. syn match    elmfiltNumber    "\d\+"
  14. syn keyword    elmfiltOper    and not matches
  15. syn match    elmfiltOper    "\~"
  16. syn match    elmfiltOper    "<=\|>=\|!=\|<\|<\|=\|(\|)"
  17. syn keyword    elmfiltRule    if then
  18. syn region    elmfiltString    start='"' skip='"\(\\\\\)*\\"' end='"'    contains=elmfiltArg
  19. syn match    elmfiltComment    "^#.*$"
  20.  
  21. if !exists("did_elmfilt_syntax_inits")
  22.   let did_elmfilt_syntax_inits= 1
  23.   hi link elmfiltAction    Statement
  24.   hi link elmfiltArg    Special
  25.   hi link elmfiltComment    Comment
  26.   hi link elmfiltCond    Type
  27.   hi link elmfiltMatch    Special
  28.   hi link elmfiltNumber    Number
  29.   hi link elmfiltOper    Operator
  30.   hi link elmfiltRule    Statement
  31.   hi link elmfiltString    String
  32.   endif
  33. let b:current_syntax = "elmfilt"
  34. " vim: ts=9
  35.