Bram Moolenaar | 42eeac3 | 2005-06-29 22:40:58 +0000 | [diff] [blame] | 1 | " Vim syntax file |
| 2 | " Language: updatedb.conf(5) configuration file |
Bram Moolenaar | 57657d8 | 2006-04-21 22:12:41 +0000 | [diff] [blame] | 3 | " Maintainer: Nikolai Weibull <now@bitwi.se> |
| 4 | " Latest Revision: 2006-04-19 |
Bram Moolenaar | 42eeac3 | 2005-06-29 22:40:58 +0000 | [diff] [blame] | 5 | |
| 6 | if exists("b:current_syntax") |
| 7 | finish |
| 8 | endif |
| 9 | |
| 10 | let s:cpo_save = &cpo |
| 11 | set cpo&vim |
| 12 | |
| 13 | syn keyword updatedbTodo contained TODO FIXME XXX NOTE |
| 14 | |
| 15 | syn region updatedbComment display oneline start='^\s*#' end='$' |
| 16 | \ contains=updatedbTodo,@Spell |
| 17 | |
| 18 | syn match updatedbBegin display '^' |
| 19 | \ nextgroup=updatedbName,updatedbComment skipwhite |
| 20 | |
| 21 | syn keyword updatedbName contained PRUNEFS PRUNEPATHS |
| 22 | \ nextgroup=updatedbNameEq |
| 23 | |
| 24 | syn match updatedbNameEq contained display '=' nextgroup=updatedbValue |
| 25 | |
Bram Moolenaar | 0dc065e | 2005-07-04 22:49:24 +0000 | [diff] [blame] | 26 | syn region updatedbValue contained display oneline start='"' end='"' |
Bram Moolenaar | 42eeac3 | 2005-06-29 22:40:58 +0000 | [diff] [blame] | 27 | |
| 28 | hi def link updatedbTodo Todo |
| 29 | hi def link updatedbComment Comment |
| 30 | hi def link updatedbName Identifier |
| 31 | hi def link updatedbNameEq Operator |
| 32 | hi def link updatedbValue String |
| 33 | |
| 34 | let b:current_syntax = "updatedb" |
| 35 | |
| 36 | let &cpo = s:cpo_save |
| 37 | unlet s:cpo_save |