40 lines · 1.2 KB · Text
RawDownload
" Vim syntax file" Language:	Debian sources.list" Maintainer:	Matthijs Mohlmann <matthijs@cacholong.nl>" Last Change:	$Date: 2006/03/28 21:08:56 $" URL: http://www.cacholong.nl/~matthijs/vim/syntax/debsources.vim" $Revision: 1.1 $ " this is a very simple syntax file - I will be improving it" add entire DEFINE syntax " Standard syntax initializationif version < 600  syntax clearelseif exists("b:current_syntax")  finishendif " case sensitivesyn case match " A bunch of useful keywordssyn match debsourcesKeyword        /\(deb-src\|deb\|main\|contrib\|non-free\)/ " Match commentssyn match debsourcesComment        /#.*/ " Match uri'ssyn match debsourcesUri            +\(http://\|ftp://\|file:///\)[^' 	<>"]\++syn match debsourcesDistrKeyword   +\([[:alnum:]_./]*\)\(woody\|sarge\|etch\|old-stable\|stable\|testing\|unstable\|sid\|experimental\|warty\|hoary\|breezy\)\([[:alnum:]_./]*\)+ " Associate our matches and regions with pretty colourshi def link debsourcesLine            Errorhi def link debsourcesKeyword         Statementhi def link debsourcesDistrKeyword    Typehi def link debsourcesComment         Commenthi def link debsourcesUri             Constant let b:current_syntax = "debsources" " vim: ts=8