xref: /vim-8.2.3635/runtime/syntax/alsaconf.vim (revision 214641f7)
1" Vim syntax file
2" Language:             alsaconf(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 alsoconfTodo        contained FIXME TODO XXX NOTE
14
15syn region  alsaconfComment     display oneline
16                                \ start='#' end='$'
17                                \ contains=alsaconfTodo,@Spell
18
19syn match   alsaconfSpecialChar contained display '\\[ntvbrf]'
20syn match   alsaconfSpecialChar contained display '\\\o\+'
21
22syn region  alsaconfString      start=+"+ skip=+\\$+ end=+"\|$+
23                                \ contains=alsaconfSpecialChar
24
25syn match   alsaconfSpecial     contained display 'confdir:'
26
27syn region  alsaconfPreProc     start='<' end='>' contains=alsaconfSpecial
28
29syn match   alsaconfMode        display '[+?!-]'
30
31syn keyword alsaconfKeyword     card default device errors files func strings
32syn keyword alsaconfKeyword     subdevice type vars
33
34syn match   alsaconfVariables   display '@\(hooks\|func\|args\)'
35
36hi def link alsoconfTodo        Todo
37hi def link alsaconfComment     Comment
38hi def link alsaconfSpecialChar SpecialChar
39hi def link alsaconfString      String
40hi def link alsaconfSpecial     Special
41hi def link alsaconfPreProc     PreProc
42hi def link alsaconfMode        Special
43hi def link alsaconfKeyword     Keyword
44hi def link alsaconfVariables   Identifier
45
46let b:current_syntax = "alsaconf"
47
48let &cpo = s:cpo_save
49unlet s:cpo_save
50