comparison runtime/syntax/alsaconf.vim @ 24:8ff7fd162d3c v7.0016

updated for version 7.0016
author vimboss
date Mon, 13 Sep 2004 20:26:32 +0000
parents
children f14cbd913415
comparison
equal deleted inserted replaced
23:3f44e9abe4ec 24:8ff7fd162d3c
1 " Vim syntax file
2 " Language: ALSA configuration file
3 " Maintainer: Nikolai Weibull <source@pcppopper.org>
4 " URL: http://www.pcppopper.org/
5 " Latest Revision: 2004-09-10
6 " arch-tag: 3e06fe53-28d5-44a1-871d-279f22e7aed4
7
8 if version < 600
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish
12 endif
13
14 " todo
15 syn keyword alsoconfTodo contained FIXME TODO XXX NOTE
16
17 " comments
18 syn region alsaconfComment matchgroup=alsaconfComment start="#" end="$"
19 \ contains=alsaconfTodo
20
21 " special characters
22 syn match alsaconfSpecialChar contained "\\[ntvbrf]"
23 syn match alsaconfSpecialChar contained "\\\o\+"
24
25 " strings
26 syn region alsaconfString matchgroup=alsaconfString start=+"+ skip=+\\$+
27 \ end=+"+ end=+$+ contains=alsaconfSpecialChar
28
29 " preprocessor special
30 syn match alsaconfSpecial contained "confdir:"
31
32 " preprocessor
33 syn region alsaconfPreProc matchgroup=alsaconfPreProc start="<" end=">"
34 \ contains=alsaconfSpecial
35
36 " modes
37 syn match alsaconfMode "[+?!-]"
38
39 " keywords
40 syn keyword alsaconfKeyword card default device errors files func strings
41 syn keyword alsaconfKeyword subdevice type vars
42
43 " variables
44 syn 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
49 if 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
68 endif
69
70 let b:current_syntax = "alsaconf"
71
72 " vim: set sts=2 sw=2: