| 
									
										
										
										
											2006-03-28 21:08:56 +00:00
										 |  |  | " Vim syntax file | 
					
						
							| 
									
										
										
										
											2008-07-13 17:41:49 +00:00
										 |  |  | " Language:     Debian sources.list | 
					
						
							|  |  |  | " Maintainer:   Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org> | 
					
						
							|  |  |  | " Former Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl> | 
					
						
							| 
									
										
										
										
											2013-03-19 11:35:58 +01:00
										 |  |  | " Last Change: 2013 Jan 03 | 
					
						
							| 
									
										
										
										
											2011-06-19 05:09:16 +02:00
										 |  |  | " URL: http://anonscm.debian.org/hg/pkg-vim/vim/raw-file/unstable/runtime/syntax/debsources.vim | 
					
						
							| 
									
										
										
										
											2006-03-28 21:08:56 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Standard syntax initialization | 
					
						
							|  |  |  | if version < 600 | 
					
						
							|  |  |  |   syntax clear | 
					
						
							|  |  |  | elseif exists("b:current_syntax") | 
					
						
							|  |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " case sensitive | 
					
						
							|  |  |  | syn case match | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | " A bunch of useful keywords | 
					
						
							| 
									
										
										
										
											2008-07-13 17:41:49 +00:00
										 |  |  | syn match debsourcesKeyword        /\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiverse\)/ | 
					
						
							| 
									
										
										
										
											2006-03-28 21:08:56 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Match comments | 
					
						
							| 
									
										
										
										
											2010-01-06 20:54:52 +01:00
										 |  |  | syn match debsourcesComment        /#.*/  contains=@Spell | 
					
						
							| 
									
										
										
										
											2006-03-28 21:08:56 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Match uri's | 
					
						
							| 
									
										
										
										
											2008-07-13 17:41:49 +00:00
										 |  |  | syn match debsourcesUri            +\(http://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' 	<>"]\++ | 
					
						
							| 
									
										
										
										
											2013-03-19 11:35:58 +01:00
										 |  |  | syn match debsourcesDistrKeyword   +\([[:alnum:]_./]*\)\(squeeze\|wheezy\|\(old\)\=stable\|testing\|unstable\|sid\|rc-buggy\|experimental\|hardy\|lucid\|oneiric\|precise\|quantal\|raring\)\([-[:alnum:]_./]*\)+ | 
					
						
							| 
									
										
										
										
											2006-03-28 21:08:56 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | " Associate our matches and regions with pretty colours | 
					
						
							|  |  |  | hi def link debsourcesLine            Error | 
					
						
							|  |  |  | hi def link debsourcesKeyword         Statement | 
					
						
							|  |  |  | hi def link debsourcesDistrKeyword    Type | 
					
						
							|  |  |  | hi def link debsourcesComment         Comment | 
					
						
							|  |  |  | hi def link debsourcesUri             Constant | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | let b:current_syntax = "debsources" |