xref: /vim-8.2.3635/runtime/syntax/udevconf.vim (revision 5f1920ad)
1" Vim syntax file
2" Language:             udev(8) configuration file
3" Previous Maintainer:  Nikolai Weibull <[email protected]>
4" Latest Revision:      2006-04-19
5
6if exists("b:current_syntax")
7  finish
8endif
9
10let s:cpo_save = &cpo
11set cpo&vim
12
13syn keyword udevconfTodo        contained TODO FIXME XXX NOTE
14
15syn region  udevconfComment     display oneline start='^\s*#' end='$'
16                                \ contains=udevconfTodo,@Spell
17
18syn match   udevconfBegin       display '^'
19                                \ nextgroup=udevconfVariable,udevconfComment
20                                \ skipwhite
21
22syn keyword udevconfVariable    contained udev_root udev_db udev_rules udev_log
23                                \ nextgroup=udevconfVariableEq
24
25syn match   udevconfVariableEq  contained '[[:space:]=]'
26                                \ nextgroup=udevconfString skipwhite
27
28syn region  udevconfString      contained display oneline start=+"+ end=+"+
29
30hi def link udevconfTodo        Todo
31hi def link udevconfComment     Comment
32hi def link udevconfVariable    Identifier
33hi def link udevconfVariableEq  Operator
34hi def link udevconfString      String
35
36let b:current_syntax = "udevconf"
37
38let &cpo = s:cpo_save
39unlet s:cpo_save
40