blob: d08de4f76c820d28b72f4bb7c4500a5da6e54056 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: generic configure file
3" Maintainer: Bram Moolenaar <Bram@vim.org>
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