xref: /vim-8.2.3635/runtime/syntax/conf.vim (revision 19a09a18)
1" Vim syntax file
2" Language:	generic configure file
3" Maintainer:	Bram Moolenaar <[email protected]>
4" Last Change:	2001 Apr 25
5
6" For version 5.x: Clear all syntax items
7" For version 6.x: Quit when a syntax file was already loaded
8if version < 600
9  syntax clear
10elseif exists("b:current_syntax")
11  finish
12endif
13
14syn keyword	confTodo	contained TODO FIXME XXX
15" Avoid matching "text#text", used in /etc/disktab and /etc/gettytab
16syn match	confComment	"^#.*" contains=confTodo
17syn match	confComment	"\s#.*"ms=s+1 contains=confTodo
18syn region	confString	start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline
19syn region	confString	start=+'+ skip=+\\\\\|\\'+ end=+'+ oneline
20
21" Define the default highlighting.
22" For version 5.7 and earlier: only when not done already
23" For version 5.8 and later: only when an item doesn't have highlighting yet
24if version >= 508 || !exists("did_conf_syntax_inits")
25  if version < 508
26    let did_conf_syntax_inits = 1
27    command -nargs=+ HiLink hi link <args>
28  else
29    command -nargs=+ HiLink hi def link <args>
30  endif
31
32  HiLink confComment	Comment
33  HiLink confTodo	Todo
34  HiLink confString	String
35
36  delcommand HiLink
37endif
38
39let b:current_syntax = "conf"
40
41" vim: ts=8 sw=2
42