blob: 9b8a6361bc4c3a0b59a992f5dafd686c0a2cf90f [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>
Bram Moolenaard857f0e2005-06-21 22:37:39 +00004" Last Change: 2005 Jun 20
Bram Moolenaar071d4272004-06-13 20:20:40 +00005
Bram Moolenaard857f0e2005-06-21 22:37:39 +00006" Quit when a (custom) syntax file was already loaded
7if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +00008 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
14syn match confComment "\s#.*"ms=s+1 contains=confTodo
15syn region confString start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline
16syn region confString start=+'+ skip=+\\\\\|\\'+ end=+'+ oneline
17
18" Define the default highlighting.
Bram Moolenaard857f0e2005-06-21 22:37:39 +000019" 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
Bram Moolenaar071d4272004-06-13 20:20:40 +000023
24let b:current_syntax = "conf"
25
26" vim: ts=8 sw=2