robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:f9ca139e3aa1 (#27554)9bb046d1be

master
1.8 KiB59 linesraw
1" Vim syntax file
2" Language:	exports
3" Maintainer:	This runtime file is looking for a new maintainer.
4" Former Maintainer: Charles E. Campbell
5" Last Change:	Aug 31, 2016
6" Version:	8
7" Notes:		This file includes both SysV and BSD 'isms
8" Former URL:	http://www.drchip.org/astronaut/vim/index.html#SYNTAX_EXPORTS
9
10" quit when a syntax file was already loaded
11if exists("b:current_syntax")
12  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.
40if !exists("skip_exports_syntax_inits")
41
42  hi def link exportsKeyOptSet	exportsKeySettings
43  hi def link exportsOptSet	exportsSettings
44
45  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
51
52  hi def link exportsOptError	Error
53  hi def link exportsOptSetError	Error
54  hi def link exportsSetError	Error
55
56endif
57
58let b:current_syntax = "exports"
59" vim: ts=10