2 " Language: alsaconf(8) configuration file
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
4 " Latest Revision: 2006-04-19
6 if exists("b:current_syntax")
13 syn keyword alsoconfTodo contained FIXME TODO XXX NOTE
15 syn region alsaconfComment display oneline
17 \ contains=alsaconfTodo,@Spell
19 syn match alsaconfSpecialChar contained display '\\[ntvbrf]'
20 syn match alsaconfSpecialChar contained display '\\\o\+'
22 syn region alsaconfString start=+"+ skip=+\\$+ end=+"\|$+
23 \ contains=alsaconfSpecialChar
25 syn match alsaconfSpecial contained display 'confdir:'
27 syn region alsaconfPreProc start='<' end='>' contains=alsaconfSpecial
29 syn match alsaconfMode display '[+?!-]'
31 syn keyword alsaconfKeyword card default device errors files func strings
32 syn keyword alsaconfKeyword subdevice type vars
34 syn match alsaconfVariables display '@\(hooks\|func\|args\)'
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
46 let b:current_syntax = "alsaconf"