3 " Maintainer: Dr. Charles E. Campbell, Jr. <Charles.E.Campbell.1@gsfc.nasa.gov>
4 " Last Change: May 18, 1998
5 " Notes: This file includes both SysV and BSD 'isms
7 " For version 5.x: Clear all syntax items
8 " For version 6.x: Quit when a syntax file was already loaded
11 elseif exists("b:current_syntax")
16 syn keyword exportsKeyOptions contained alldirs nohide ro wsync
17 syn keyword exportsKeyOptions contained kerb o rw
18 syn match exportsOptError contained "[a-z]\+"
21 syn keyword exportsKeySettings contained access anon root rw
22 syn match exportsSetError contained "[a-z]\+"
25 syn keyword exportsKeyOptSet contained mapall maproot mask network
26 syn match exportsOptSetError contained "[a-z]\+"
28 " options and settings
29 syn match exportsSettings "[a-z]\+=" contains=exportsKeySettings,exportsSetError
30 syn match exportsOptions "-[a-z]\+" contains=exportsKeyOptions,exportsOptError
31 syn match exportsOptSet "-[a-z]\+=" contains=exportsKeyOptSet,exportsOptSetError
34 syn match exportsSeparator "[,:]"
37 syn match exportsComment "^\s*#.*$"
39 " Define the default highlighting.
40 " For version 5.7 and earlier: only when not done already
41 " For version 5.8 and later: only when an item doesn't have highlighting yet
42 if version >= 508 || !exists("did_exports_syntax_inits")
44 let did_exports_syntax_inits = 1
45 command -nargs=+ HiLink hi link <args>
47 command -nargs=+ HiLink hi def link <args>
50 HiLink exportsKeyOptSet exportsKeySettings
51 HiLink exportsOptSet exportsSettings
53 HiLink exportsComment Comment
54 HiLink exportsKeyOptions Type
55 HiLink exportsKeySettings Keyword
56 HiLink exportsOptions Constant
57 HiLink exportsSeparator Constant
58 HiLink exportsSettings Constant
60 HiLink exportsOptError Error
61 HiLink exportsOptSetError Error
62 HiLink exportsSetError Error
67 let b:current_syntax = "exports"