blob: f695dc8d21b7dfb0fae078945c2b5b9ec3662732 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: exports
Bram Moolenaare2719092015-01-10 15:09:25 +01003" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
4" Last Change: Oct 23, 2014
5" Version: 5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006" Notes: This file includes both SysV and BSD 'isms
Bram Moolenaare2719092015-01-10 15:09:25 +01007" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_EXPORTS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008
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