3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
4 " Last Change: Sep 06, 2005
6 " Notes: This file includes both SysV and BSD 'isms
7 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
9 " For version 5.x: Clear all syntax items
10 " For version 6.x: Quit when a syntax file was already loaded
13 elseif exists("b:current_syntax")
18 syn keyword exportsKeyOptions contained alldirs nohide ro wsync
19 syn keyword exportsKeyOptions contained kerb o rw
20 syn match exportsOptError contained "[a-z]\+"
23 syn keyword exportsKeySettings contained access anon root rw
24 syn match exportsSetError contained "[a-z]\+"
27 syn keyword exportsKeyOptSet contained mapall maproot mask network
28 syn match exportsOptSetError contained "[a-z]\+"
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
36 syn match exportsSeparator "[,:]"
39 syn match exportsComment "^\s*#.*$" contains=@Spell
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")
46 let did_exports_syntax_inits = 1
47 command -nargs=+ HiLink hi link <args>
49 command -nargs=+ HiLink hi def link <args>
52 HiLink exportsKeyOptSet exportsKeySettings
53 HiLink exportsOptSet exportsSettings
55 HiLink exportsComment Comment
56 HiLink exportsKeyOptions Type
57 HiLink exportsKeySettings Keyword
58 HiLink exportsOptions Constant
59 HiLink exportsSeparator Constant
60 HiLink exportsSettings Constant
62 HiLink exportsOptError Error
63 HiLink exportsOptSetError Error
64 HiLink exportsSetError Error
69 let b:current_syntax = "exports"