home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / runtime / syntax / exports.vim < prev    next >
Encoding:
Text File  |  2002-11-18  |  2.1 KB  |  71 lines

  1. " Vim syntax file
  2. " Language:    exports
  3. " Maintainer:    Dr. Charles E. Campbell, Jr. <Charles.E.Campbell.1@nasa.gov>
  4. " Last Change:    Nov 18, 2002
  5. " Version:    2
  6. " Notes:        This file includes both SysV and BSD 'isms
  7. " URL:    http://www.erols.com/astronaut/vim/index.html#vimlinks_syntax
  8.  
  9. " For version 5.x: Clear all syntax items
  10. " For version 6.x: Quit when a syntax file was already loaded
  11. if version < 600
  12.   syntax clear
  13. elseif exists("b:current_syntax")
  14.   finish
  15. endif
  16.  
  17. " Options: -word
  18. syn keyword exportsKeyOptions contained    alldirs    nohide    ro    wsync
  19. syn keyword exportsKeyOptions contained    kerb    o    rw
  20. syn match exportsOptError contained    "[a-z]\+"
  21.  
  22. " Settings: word=
  23. syn keyword exportsKeySettings contained    access    anon    root    rw
  24. syn match exportsSetError contained    "[a-z]\+"
  25.  
  26. " OptSet: -word=
  27. syn keyword exportsKeyOptSet contained    mapall    maproot    mask    network
  28. syn match exportsOptSetError contained    "[a-z]\+"
  29.  
  30. " options and settings
  31. syn match exportsSettings    "[a-z]\+="  contains=exportsKeySettings,exportsSetError
  32. syn match exportsOptions    "-[a-z]\+"  contains=exportsKeyOptions,exportsOptError
  33. syn match exportsOptSet    "-[a-z]\+=" contains=exportsKeyOptSet,exportsOptSetError
  34.  
  35. " Separators
  36. syn match exportsSeparator    "[,:]"
  37.  
  38. " comments
  39. syn match exportsComment    "^\s*#.*$"
  40.  
  41. " Define the default highlighting.
  42. " For version 5.7 and earlier: only when not done already
  43. " For version 5.8 and later: only when an item doesn't have highlighting yet
  44. if version >= 508 || !exists("did_exports_syntax_inits")
  45.   if version < 508
  46.     let did_exports_syntax_inits = 1
  47.     command -nargs=+ HiLink hi link <args>
  48.   else
  49.     command -nargs=+ HiLink hi def link <args>
  50.   endif
  51.  
  52.   HiLink exportsKeyOptSet    exportsKeySettings
  53.   HiLink exportsOptSet    exportsSettings
  54.  
  55.   HiLink exportsComment    Comment
  56.   HiLink exportsKeyOptions    Type
  57.   HiLink exportsKeySettings    Keyword
  58.   HiLink exportsOptions    Constant
  59.   HiLink exportsSeparator    Constant
  60.   HiLink exportsSettings    Constant
  61.  
  62.   HiLink exportsOptError    Error
  63.   HiLink exportsOptSetError    Error
  64.   HiLink exportsSetError    Error
  65.  
  66.   delcommand HiLink
  67. endif
  68.  
  69. let b:current_syntax = "exports"
  70. " vim: ts=10
  71.