summaryrefslogtreecommitdiffstats
path: root/runtime/syntax/alsaconf.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-09-13 20:26:32 +0000
committerBram Moolenaar <Bram@vim.org>2004-09-13 20:26:32 +0000
commitc0197e2815208269fa9ba2fba95230138ec39ceb (patch)
tree21db1c3acd16fb095a8e34ce2e15ed87275cbd79 /runtime/syntax/alsaconf.vim
parent15d0a8c77dad867b69822e2fd8f9f6bbcf765c48 (diff)
updated for version 7.0016v7.0016
Diffstat (limited to 'runtime/syntax/alsaconf.vim')
-rw-r--r--runtime/syntax/alsaconf.vim72
1 files changed, 72 insertions, 0 deletions
diff --git a/runtime/syntax/alsaconf.vim b/runtime/syntax/alsaconf.vim
new file mode 100644
index 0000000000..90d03605e9
--- /dev/null
+++ b/runtime/syntax/alsaconf.vim
@@ -0,0 +1,72 @@
+" Vim syntax file
+" Language: ALSA configuration file
+" Maintainer: Nikolai Weibull <source@pcppopper.org>
+" URL: http://www.pcppopper.org/
+" Latest Revision: 2004-09-10
+" arch-tag: 3e06fe53-28d5-44a1-871d-279f22e7aed4
+
+if version < 600
+ syntax clear
+elseif exists("b:current_syntax")
+ finish
+endif
+
+" todo
+syn keyword alsoconfTodo contained FIXME TODO XXX NOTE
+
+" comments
+syn region alsaconfComment matchgroup=alsaconfComment start="#" end="$"
+ \ contains=alsaconfTodo
+
+" special characters
+syn match alsaconfSpecialChar contained "\\[ntvbrf]"
+syn match alsaconfSpecialChar contained "\\\o\+"
+
+" strings
+syn region alsaconfString matchgroup=alsaconfString start=+"+ skip=+\\$+
+ \ end=+"+ end=+$+ contains=alsaconfSpecialChar
+
+" preprocessor special
+syn match alsaconfSpecial contained "confdir:"
+
+" preprocessor
+syn region alsaconfPreProc matchgroup=alsaconfPreProc start="<" end=">"
+ \ contains=alsaconfSpecial
+
+" modes
+syn match alsaconfMode "[+?!-]"
+
+" keywords
+syn keyword alsaconfKeyword card default device errors files func strings
+syn keyword alsaconfKeyword subdevice type vars
+
+" variables
+syn match alsaconfVariables "@\(hooks\|func\|args\)"
+
+" Define the default highlighting.
+" For version 5.7 and earlier: only when not done already
+" For version 5.8 and later: only when an item doesn't have highlighting yet
+if version >= 508 || !exists("did_alsaconf_syn_inits")
+ if version < 508
+ let did_dircolors_syn_inits = 1
+ command -nargs=+ HiLink hi link <args>
+ else
+ command -nargs=+ HiLink hi def link <args>
+ endif
+
+ HiLink alsoconfTodo Todo
+ HiLink alsaconfComment Comment
+ HiLink alsaconfSpecialChar SpecialChar
+ HiLink alsaconfString String
+ HiLink alsaconfSpecial Special
+ HiLink alsaconfPreProc PreProc
+ HiLink alsaconfMode Special
+ HiLink alsaconfKeyword Keyword
+ HiLink alsaconfVariables Identifier
+
+ delcommand HiLink
+endif
+
+let b:current_syntax = "alsaconf"
+
+" vim: set sts=2 sw=2: