24
|
1 " Vim syntax file
|
11062
|
2 " Language: alsaconf(8) configuration file
|
|
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
4 " Latest Revision: 2006-04-19
|
24
|
5
|
375
|
6 if exists("b:current_syntax")
|
24
|
7 finish
|
|
8 endif
|
|
9
|
375
|
10 let s:cpo_save = &cpo
|
|
11 set cpo&vim
|
24
|
12
|
375
|
13 syn keyword alsoconfTodo contained FIXME TODO XXX NOTE
|
24
|
14
|
389
|
15 syn region alsaconfComment display oneline
|
375
|
16 \ start='#' end='$'
|
|
17 \ contains=alsaconfTodo,@Spell
|
24
|
18
|
375
|
19 syn match alsaconfSpecialChar contained display '\\[ntvbrf]'
|
|
20 syn match alsaconfSpecialChar contained display '\\\o\+'
|
24
|
21
|
389
|
22 syn region alsaconfString start=+"+ skip=+\\$+ end=+"\|$+
|
375
|
23 \ contains=alsaconfSpecialChar
|
24
|
24
|
375
|
25 syn match alsaconfSpecial contained display 'confdir:'
|
24
|
26
|
389
|
27 syn region alsaconfPreProc start='<' end='>' contains=alsaconfSpecial
|
375
|
28
|
|
29 syn match alsaconfMode display '[+?!-]'
|
24
|
30
|
375
|
31 syn keyword alsaconfKeyword card default device errors files func strings
|
|
32 syn keyword alsaconfKeyword subdevice type vars
|
|
33
|
|
34 syn match alsaconfVariables display '@\(hooks\|func\|args\)'
|
24
|
35
|
375
|
36 hi def link alsoconfTodo Todo
|
|
37 hi def link alsaconfComment Comment
|
|
38 hi def link alsaconfSpecialChar SpecialChar
|
|
39 hi def link alsaconfString String
|
|
40 hi def link alsaconfSpecial Special
|
|
41 hi def link alsaconfPreProc PreProc
|
|
42 hi def link alsaconfMode Special
|
|
43 hi def link alsaconfKeyword Keyword
|
|
44 hi def link alsaconfVariables Identifier
|
24
|
45
|
|
46 let b:current_syntax = "alsaconf"
|
|
47
|
375
|
48 let &cpo = s:cpo_save
|
|
49 unlet s:cpo_save
|