Mercurial > hg > RemoteEditor > vim7
comparison runtime/syntax/conf.vim @ 0:76efa0be13f1
Initial revision
author | atsuki |
---|---|
date | Sat, 10 Nov 2007 15:07:22 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:76efa0be13f1 |
---|---|
1 " Vim syntax file | |
2 " Language: generic configure file | |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
4 " Last Change: 2005 Jun 20 | |
5 | |
6 " Quit when a (custom) syntax file was already loaded | |
7 if exists("b:current_syntax") | |
8 finish | |
9 endif | |
10 | |
11 syn keyword confTodo contained TODO FIXME XXX | |
12 " Avoid matching "text#text", used in /etc/disktab and /etc/gettytab | |
13 syn match confComment "^#.*" contains=confTodo | |
14 syn match confComment "\s#.*"ms=s+1 contains=confTodo | |
15 syn region confString start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline | |
16 syn region confString start=+'+ skip=+\\\\\|\\'+ end=+'+ oneline | |
17 | |
18 " Define the default highlighting. | |
19 " Only used when an item doesn't have highlighting yet | |
20 hi def link confComment Comment | |
21 hi def link confTodo Todo | |
22 hi def link confString String | |
23 | |
24 let b:current_syntax = "conf" | |
25 | |
26 " vim: ts=8 sw=2 |