alsaconf.vim 1.5 KB

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