home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / runtime / dos / syntax / alsaconf.vim < prev    next >
Encoding:
Text File  |  2010-08-15  |  1.5 KB  |  50 lines

  1. " Vim syntax file
  2. " Language:         alsaconf(8) configuration file
  3. " Maintainer:       Nikolai Weibull <now@bitwi.se>
  4. " Latest Revision:  2006-04-19
  5.  
  6. if exists("b:current_syntax")
  7.   finish
  8. endif
  9.  
  10. let s:cpo_save = &cpo
  11. set cpo&vim
  12.  
  13. syn keyword alsoconfTodo        contained FIXME TODO XXX NOTE
  14.  
  15. syn region  alsaconfComment     display oneline
  16.                                 \ start='#' end='$'
  17.                                 \ contains=alsaconfTodo,@Spell
  18.  
  19. syn match   alsaconfSpecialChar contained display '\\[ntvbrf]'
  20. syn match   alsaconfSpecialChar contained display '\\\o\+'
  21.  
  22. syn region  alsaconfString      start=+"+ skip=+\\$+ end=+"\|$+
  23.                                 \ contains=alsaconfSpecialChar
  24.  
  25. syn match   alsaconfSpecial     contained display 'confdir:'
  26.  
  27. syn region  alsaconfPreProc     start='<' end='>' contains=alsaconfSpecial
  28.  
  29. syn match   alsaconfMode        display '[+?!-]'
  30.  
  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\)'
  35.  
  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
  45.  
  46. let b:current_syntax = "alsaconf"
  47.  
  48. let &cpo = s:cpo_save
  49. unlet s:cpo_save
  50.