Bram Moolenaar | 42eeac3 | 2005-06-29 22:40:58 +0000 | [diff] [blame] | 1 | " Vim syntax file |
Bram Moolenaar | 214641f | 2017-03-05 17:04:09 +0100 | [diff] [blame] | 2 | " Language: updatedb.conf(5) configuration file |
| 3 | " Previous Maintainer: Nikolai Weibull <now@bitwi.se> |
| 4 | " Latest Revision: 2009-05-25 |
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 | |
Bram Moolenaar | 5c73622 | 2010-01-06 20:54:52 +0100 | [diff] [blame] | 21 | syn keyword updatedbName contained |
| 22 | \ PRUNEFS |
| 23 | \ PRUNENAMES |
| 24 | \ PRUNEPATHS |
| 25 | \ PRUNE_BIND_MOUNTS |
Bram Moolenaar | 42eeac3 | 2005-06-29 22:40:58 +0000 | [diff] [blame] | 26 | \ nextgroup=updatedbNameEq |
| 27 | |
| 28 | syn match updatedbNameEq contained display '=' nextgroup=updatedbValue |
| 29 | |
Bram Moolenaar | 0dc065e | 2005-07-04 22:49:24 +0000 | [diff] [blame] | 30 | syn region updatedbValue contained display oneline start='"' end='"' |
Bram Moolenaar | 42eeac3 | 2005-06-29 22:40:58 +0000 | [diff] [blame] | 31 | |
| 32 | hi def link updatedbTodo Todo |
| 33 | hi def link updatedbComment Comment |
| 34 | hi def link updatedbName Identifier |
| 35 | hi def link updatedbNameEq Operator |
| 36 | hi def link updatedbValue String |
| 37 | |
| 38 | let b:current_syntax = "updatedb" |
| 39 | |
| 40 | let &cpo = s:cpo_save |
| 41 | unlet s:cpo_save |