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