xref: /vim-8.2.3635/runtime/syntax/conf.vim (revision 89a9c159)
1" Vim syntax file
2" Language:	generic configure file
3" Maintainer:	Bram Moolenaar <[email protected]>
4" Last Change:	2021 May 01
5
6" Quit when a (custom) syntax file was already loaded
7if exists("b:current_syntax")
8  finish
9endif
10
11syn keyword	confTodo	contained TODO FIXME XXX
12" Avoid matching "text#text", used in /etc/disktab and /etc/gettytab
13syn match	confComment	"^#.*" contains=confTodo,@Spell
14syn match	confComment	"\s#.*"ms=s+1 contains=confTodo,@Spell
15syn region	confString	start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline
16syn region	confString	start=+'+ skip=+\\\\\|\\'+ end=+'+ oneline
17
18" Define the default highlighting.
19" Only used when an item doesn't have highlighting yet
20hi def link confComment	Comment
21hi def link confTodo	Todo
22hi def link confString	String
23
24let b:current_syntax = "conf"
25
26" vim: ts=8 sw=2
27