vim72-20100325-kaoriya-w64j.zip
[MacVim/KaoriYa.git] / runtime / syntax / udevconf.vim
bloba294604906e84ea869a30daf4e95a82d58b4be80
1 " Vim syntax file
2 " Language:         udev(8) configuration file
3 " Maintainer:       Nikolai Weibull <now@bitwi.se>
4 " Latest Revision:  2006-04-19
6 if exists("b:current_syntax")
7   finish
8 endif
10 let s:cpo_save = &cpo
11 set cpo&vim
13 syn keyword udevconfTodo        contained TODO FIXME XXX NOTE
15 syn region  udevconfComment     display oneline start='^\s*#' end='$'
16                                 \ contains=udevconfTodo,@Spell
18 syn match   udevconfBegin       display '^'
19                                 \ nextgroup=udevconfVariable,udevconfComment
20                                 \ skipwhite
22 syn keyword udevconfVariable    contained udev_root udev_db udev_rules udev_log
23                                 \ nextgroup=udevconfVariableEq
25 syn match   udevconfVariableEq  contained '[[:space:]=]'
26                                 \ nextgroup=udevconfString skipwhite
28 syn region  udevconfString      contained display oneline start=+"+ end=+"+
30 hi def link udevconfTodo        Todo
31 hi def link udevconfComment     Comment
32 hi def link udevconfVariable    Identifier
33 hi def link udevconfVariableEq  Operator
34 hi def link udevconfString      String
36 let b:current_syntax = "udevconf"
38 let &cpo = s:cpo_save
39 unlet s:cpo_save