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

  1. " Vim syntax file
  2. " Language:    exports
  3. " Maintainer : Dr. Charles E. Campbell, Jr. <Charles.Campbell@gsfc.nasa.gov>
  4. " Last change:    May 18, 1998
  5. " Notes: This file includes both SysV and BSD 'isms
  6.  
  7. " Remove any old syntax stuff hanging around
  8. syn clear
  9.  
  10. " Options: -word
  11. syn keyword exportsKeyOptions contained    alldirs    nohide    ro    wsync
  12. syn keyword exportsKeyOptions contained    kerb    o    rw
  13. syn match exportsOptError contained    "[a-z]\+"
  14.  
  15. " Settings: word=
  16. syn keyword exportsKeySettings contained    access    anon    root    rw
  17. syn match exportsSetError contained    "[a-z]\+"
  18.  
  19. " OptSet: -word=
  20. syn keyword exportsKeyOptSet contained    mapall    maproot    mask    network
  21. syn match exportsOptSetError contained    "[a-z]\+"
  22.  
  23. " options and settings
  24. syn match exportsSettings    "[a-z]\+="  contains=exportsKeySettings,exportsSetError
  25. syn match exportsOptions    "-[a-z]\+"  contains=exportsKeyOptions,exportsOptError
  26. syn match exportsOptSet    "-[a-z]\+=" contains=exportsKeyOptSet,exportsOptSetError
  27.  
  28. " Separators
  29. syn match exportsSeparator    "[,:]"
  30.  
  31. " comments
  32. syn match exportsComment    "^\s*#.*$"
  33.  
  34. if !exists("did_exports_syntax_inits")
  35.   let did_exports_syntax_inits = 1
  36.   hi link exportsKeyOptSet    exportsKeySettings
  37.   hi link exportsOptSet    exportsSettings
  38.  
  39.   hi link exportsComment    Comment
  40.   hi link exportsKeyOptions    Type
  41.   hi link exportsKeySettings    Keyword
  42.   hi link exportsOptions    Constant
  43.   hi link exportsSeparator    Constant
  44.   hi link exportsSettings    Constant
  45.  
  46.   hi link exportsOptError    Error
  47.   hi link exportsOptSetError    Error
  48.   hi link exportsSetError    Error
  49. endif
  50.  
  51. let b:current_syntax = "exports"
  52. " vim: ts=10
  53.