blob: 05a3f1acfe3f9b554d7806cda089d3c5fb6e2a7e [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: exports
Bram Moolenaar1d9215b2020-01-25 13:27:42 +01003" Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
Bram Moolenaarf37506f2016-08-31 22:22:10 +02004" Last Change: Aug 31, 2016
Bram Moolenaar1d9215b2020-01-25 13:27:42 +01005" Version: 8
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
Bram Moolenaar89bcfda2016-08-30 23:26:57 +02009" quit when a syntax file was already loaded
10if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000011 finish
12endif
13
14" Options: -word
15syn keyword exportsKeyOptions contained alldirs nohide ro wsync
16syn keyword exportsKeyOptions contained kerb o rw
17syn match exportsOptError contained "[a-z]\+"
18
19" Settings: word=
20syn keyword exportsKeySettings contained access anon root rw
21syn match exportsSetError contained "[a-z]\+"
22
23" OptSet: -word=
24syn keyword exportsKeyOptSet contained mapall maproot mask network
25syn match exportsOptSetError contained "[a-z]\+"
26
27" options and settings
28syn match exportsSettings "[a-z]\+=" contains=exportsKeySettings,exportsSetError
29syn match exportsOptions "-[a-z]\+" contains=exportsKeyOptions,exportsOptError
30syn match exportsOptSet "-[a-z]\+=" contains=exportsKeyOptSet,exportsOptSetError
31
32" Separators
33syn match exportsSeparator "[,:]"
34
35" comments
36syn match exportsComment "^\s*#.*$" contains=@Spell
37
38" Define the default highlighting.
Bram Moolenaarf37506f2016-08-31 22:22:10 +020039if !exists("skip_exports_syntax_inits")
Bram Moolenaar071d4272004-06-13 20:20:40 +000040
Bram Moolenaarf37506f2016-08-31 22:22:10 +020041 hi def link exportsKeyOptSet exportsKeySettings
42 hi def link exportsOptSet exportsSettings
Bram Moolenaar071d4272004-06-13 20:20:40 +000043
Bram Moolenaarf37506f2016-08-31 22:22:10 +020044 hi def link exportsComment Comment
45 hi def link exportsKeyOptions Type
46 hi def link exportsKeySettings Keyword
47 hi def link exportsOptions Constant
48 hi def link exportsSeparator Constant
49 hi def link exportsSettings Constant
Bram Moolenaar071d4272004-06-13 20:20:40 +000050
Bram Moolenaarf37506f2016-08-31 22:22:10 +020051 hi def link exportsOptError Error
52 hi def link exportsOptSetError Error
53 hi def link exportsSetError Error
Bram Moolenaar071d4272004-06-13 20:20:40 +000054
Bram Moolenaarf37506f2016-08-31 22:22:10 +020055endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000056
57let b:current_syntax = "exports"
58" vim: ts=10