blob: 00b7d80dfa28840e958be1755a23fdc3844dce07 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: exports
Christian Brabandtf9ca1392024-02-19 20:37:11 +01003" Maintainer: This runtime file is looking for a new maintainer.
4" Former Maintainer: Charles E. Campbell
Bram Moolenaarf37506f2016-08-31 22:22:10 +02005" Last Change: Aug 31, 2016
Bram Moolenaar1d9215b2020-01-25 13:27:42 +01006" Version: 8
Bram Moolenaar071d4272004-06-13 20:20:40 +00007" Notes: This file includes both SysV and BSD 'isms
Christian Brabandtf9ca1392024-02-19 20:37:11 +01008" Former URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_EXPORTS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020010" quit when a syntax file was already loaded
11if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000012 finish
13endif
14
15" Options: -word
16syn keyword exportsKeyOptions contained alldirs nohide ro wsync
17syn keyword exportsKeyOptions contained kerb o rw
18syn match exportsOptError contained "[a-z]\+"
19
20" Settings: word=
21syn keyword exportsKeySettings contained access anon root rw
22syn match exportsSetError contained "[a-z]\+"
23
24" OptSet: -word=
25syn keyword exportsKeyOptSet contained mapall maproot mask network
26syn match exportsOptSetError contained "[a-z]\+"
27
28" options and settings
29syn match exportsSettings "[a-z]\+=" contains=exportsKeySettings,exportsSetError
30syn match exportsOptions "-[a-z]\+" contains=exportsKeyOptions,exportsOptError
31syn match exportsOptSet "-[a-z]\+=" contains=exportsKeyOptSet,exportsOptSetError
32
33" Separators
34syn match exportsSeparator "[,:]"
35
36" comments
37syn match exportsComment "^\s*#.*$" contains=@Spell
38
39" Define the default highlighting.
Bram Moolenaarf37506f2016-08-31 22:22:10 +020040if !exists("skip_exports_syntax_inits")
Bram Moolenaar071d4272004-06-13 20:20:40 +000041
Bram Moolenaarf37506f2016-08-31 22:22:10 +020042 hi def link exportsKeyOptSet exportsKeySettings
43 hi def link exportsOptSet exportsSettings
Bram Moolenaar071d4272004-06-13 20:20:40 +000044
Bram Moolenaarf37506f2016-08-31 22:22:10 +020045 hi def link exportsComment Comment
46 hi def link exportsKeyOptions Type
47 hi def link exportsKeySettings Keyword
48 hi def link exportsOptions Constant
49 hi def link exportsSeparator Constant
50 hi def link exportsSettings Constant
Bram Moolenaar071d4272004-06-13 20:20:40 +000051
Bram Moolenaarf37506f2016-08-31 22:22:10 +020052 hi def link exportsOptError Error
53 hi def link exportsOptSetError Error
54 hi def link exportsSetError Error
Bram Moolenaar071d4272004-06-13 20:20:40 +000055
Bram Moolenaarf37506f2016-08-31 22:22:10 +020056endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000057
58let b:current_syntax = "exports"
59" vim: ts=10