7
|
1 " Vim syntax file
|
|
2 " Language: exports
|
|
3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
|
4 " Last Change: Sep 02, 2003
|
|
5 " Version: 3
|
|
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*#.*$" 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
|
|
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
|