1" Vim syntax file
2" Language:	exports
3" Maintainer:	Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
4" Last Change:	Sep 06, 2005
5" Version:	4
6" Notes:		This file includes both SysV and BSD 'isms
7" URL:	http://mysite.verizon.net/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
11if version < 600
12  syntax clear
13elseif exists("b:current_syntax")
14  finish
15endif
16
17" Options: -word
18syn keyword exportsKeyOptions contained	alldirs	nohide	ro	wsync
19syn keyword exportsKeyOptions contained	kerb	o	rw
20syn match exportsOptError contained	"[a-z]\+"
21
22" Settings: word=
23syn keyword exportsKeySettings contained	access	anon	root	rw
24syn match exportsSetError contained	"[a-z]\+"
25
26" OptSet: -word=
27syn keyword exportsKeyOptSet contained	mapall	maproot	mask	network
28syn match exportsOptSetError contained	"[a-z]\+"
29
30" options and settings
31syn match exportsSettings	"[a-z]\+="  contains=exportsKeySettings,exportsSetError
32syn match exportsOptions	"-[a-z]\+"  contains=exportsKeyOptions,exportsOptError
33syn match exportsOptSet	"-[a-z]\+=" contains=exportsKeyOptSet,exportsOptSetError
34
35" Separators
36syn match exportsSeparator	"[,:]"
37
38" comments
39syn match exportsComment	"^\s*#.*$"	contains=@Spell
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
44if 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
67endif
68
69let b:current_syntax = "exports"
70" vim: ts=10
71