1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-22 01:35:11 +01:00
vim/runtime/syntax/alsaconf.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.5 KiB
VimL
Raw Normal View History

2004-09-13 20:26:32 +00:00
" Vim syntax file
2017-03-05 17:04:09 +01:00
" Language: alsaconf(8) configuration file
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2006-04-19
2004-09-13 20:26:32 +00:00
2005-06-29 22:40:58 +00:00
if exists("b:current_syntax")
2004-09-13 20:26:32 +00:00
finish
endif
2005-06-29 22:40:58 +00:00
let s:cpo_save = &cpo
set cpo&vim
2004-09-13 20:26:32 +00:00
2005-06-29 22:40:58 +00:00
syn keyword alsoconfTodo contained FIXME TODO XXX NOTE
2004-09-13 20:26:32 +00:00
2005-07-04 22:49:24 +00:00
syn region alsaconfComment display oneline
2005-06-29 22:40:58 +00:00
\ start='#' end='$'
\ contains=alsaconfTodo,@Spell
2004-09-13 20:26:32 +00:00
2005-06-29 22:40:58 +00:00
syn match alsaconfSpecialChar contained display '\\[ntvbrf]'
syn match alsaconfSpecialChar contained display '\\\o\+'
2004-09-13 20:26:32 +00:00
2005-07-04 22:49:24 +00:00
syn region alsaconfString start=+"+ skip=+\\$+ end=+"\|$+
2005-06-29 22:40:58 +00:00
\ contains=alsaconfSpecialChar
2004-09-13 20:26:32 +00:00
2005-06-29 22:40:58 +00:00
syn match alsaconfSpecial contained display 'confdir:'
2004-09-13 20:26:32 +00:00
2005-07-04 22:49:24 +00:00
syn region alsaconfPreProc start='<' end='>' contains=alsaconfSpecial
2004-09-13 20:26:32 +00:00
2005-06-29 22:40:58 +00:00
syn match alsaconfMode display '[+?!-]'
2004-09-13 20:26:32 +00:00
2005-06-29 22:40:58 +00:00
syn keyword alsaconfKeyword card default device errors files func strings
syn keyword alsaconfKeyword subdevice type vars
2004-09-13 20:26:32 +00:00
2005-06-29 22:40:58 +00:00
syn match alsaconfVariables display '@\(hooks\|func\|args\)'
2004-09-13 20:26:32 +00:00
2005-06-29 22:40:58 +00:00
hi def link alsoconfTodo Todo
hi def link alsaconfComment Comment
hi def link alsaconfSpecialChar SpecialChar
hi def link alsaconfString String
hi def link alsaconfSpecial Special
hi def link alsaconfPreProc PreProc
hi def link alsaconfMode Special
hi def link alsaconfKeyword Keyword
hi def link alsaconfVariables Identifier
2004-09-13 20:26:32 +00:00
let b:current_syntax = "alsaconf"
2005-06-29 22:40:58 +00:00
let &cpo = s:cpo_save
unlet s:cpo_save