7
|
1 " Vim syntax file
|
11062
|
2 " Language: modules.conf(5) configuration file
|
|
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
4 " Latest Revision: 2007-10-25
|
7
|
5
|
375
|
6 if exists("b:current_syntax")
|
7
|
7 finish
|
|
8 endif
|
|
9
|
1624
|
10 setlocal iskeyword+=-
|
7
|
11
|
375
|
12 let s:cpo_save = &cpo
|
|
13 set cpo&vim
|
7
|
14
|
375
|
15 syn keyword modconfTodo FIXME TODO XXX NOTE
|
7
|
16
|
375
|
17 syn region modconfComment start='#' skip='\\$' end='$'
|
|
18 \ contains=modconfTodo,@Spell
|
7
|
19
|
375
|
20 syn keyword modconfConditional if else elseif endif
|
7
|
21
|
375
|
22 syn keyword modconfPreProc alias define include keep prune
|
|
23 \ post-install post-remove pre-install
|
1698
|
24 \ pre-remove persistdir blacklist
|
375
|
25
|
|
26 syn keyword modconfKeyword add above below install options probe probeall
|
|
27 \ remove
|
7
|
28
|
375
|
29 syn keyword modconfIdentifier depfile insmod_opt path generic_stringfile
|
|
30 \ pcimapfile isapnpmapfile usbmapfile
|
|
31 \ parportmapfile ieee1394mapfile pnpbiosmapfile
|
|
32 syn match modconfIdentifier 'path\[[^]]\+\]'
|
7
|
33
|
375
|
34 hi def link modconfTodo Todo
|
|
35 hi def link modconfComment Comment
|
|
36 hi def link modconfConditional Conditional
|
|
37 hi def link modconfPreProc PreProc
|
|
38 hi def link modconfKeyword Keyword
|
|
39 hi def link modconfIdentifier Identifier
|
7
|
40
|
|
41 let b:current_syntax = "modconf"
|
|
42
|
375
|
43 let &cpo = s:cpo_save
|
|
44 unlet s:cpo_save
|