| 
									
										
										
										
											2004-09-13 20:26:32 +00:00
										 |  |  | " Vim syntax file | 
					
						
							| 
									
										
										
										
											2005-06-29 22:40:58 +00:00
										 |  |  | " Language:         alsaconf(8) configuration file | 
					
						
							| 
									
										
										
										
											2006-04-21 22:12:41 +00:00
										 |  |  | " 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 |