1" Vim syntax file 2" Language: ALSA configuration file 3" Maintainer: Nikolai Weibull <[email protected]> 4" URL: http://www.pcppopper.org/ 5" Latest Revision: 2004-09-10 6" arch-tag: 3e06fe53-28d5-44a1-871d-279f22e7aed4 7 8if version < 600 9 syntax clear 10elseif exists("b:current_syntax") 11 finish 12endif 13 14" todo 15syn keyword alsoconfTodo contained FIXME TODO XXX NOTE 16 17" comments 18syn region alsaconfComment matchgroup=alsaconfComment start="#" end="$" 19 \ contains=alsaconfTodo 20 21" special characters 22syn match alsaconfSpecialChar contained "\\[ntvbrf]" 23syn match alsaconfSpecialChar contained "\\\o\+" 24 25" strings 26syn region alsaconfString matchgroup=alsaconfString start=+"+ skip=+\\$+ 27 \ end=+"+ end=+$+ contains=alsaconfSpecialChar 28 29" preprocessor special 30syn match alsaconfSpecial contained "confdir:" 31 32" preprocessor 33syn region alsaconfPreProc matchgroup=alsaconfPreProc start="<" end=">" 34 \ contains=alsaconfSpecial 35 36" modes 37syn match alsaconfMode "[+?!-]" 38 39" keywords 40syn keyword alsaconfKeyword card default device errors files func strings 41syn keyword alsaconfKeyword subdevice type vars 42 43" variables 44syn match alsaconfVariables "@\(hooks\|func\|args\)" 45 46" Define the default highlighting. 47" For version 5.7 and earlier: only when not done already 48" For version 5.8 and later: only when an item doesn't have highlighting yet 49if version >= 508 || !exists("did_alsaconf_syn_inits") 50 if version < 508 51 let did_dircolors_syn_inits = 1 52 command -nargs=+ HiLink hi link <args> 53 else 54 command -nargs=+ HiLink hi def link <args> 55 endif 56 57 HiLink alsoconfTodo Todo 58 HiLink alsaconfComment Comment 59 HiLink alsaconfSpecialChar SpecialChar 60 HiLink alsaconfString String 61 HiLink alsaconfSpecial Special 62 HiLink alsaconfPreProc PreProc 63 HiLink alsaconfMode Special 64 HiLink alsaconfKeyword Keyword 65 HiLink alsaconfVariables Identifier 66 67 delcommand HiLink 68endif 69 70let b:current_syntax = "alsaconf" 71 72" vim: set sts=2 sw=2: 73