aboutsummaryrefslogtreecommitdiff
path: root/vim/syntax/paludis-mirrors-conf.vim
blob: 85cf3e9b2c7eecf46e440965a8b6d7ad3c3f3db1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
" Vim syntax file
" Language:	Paludis mirrors.conf files
" Author:	Ciaran McCreesh
" Copyright:	Copyright (c) 2007 Ciaran McCreesh
" Licence:	You may redistribute this under the same terms as Vim itself
"
" Syntax highlighting for Paludis mirrors.conf files.
"

if &compatible || v:version < 700
    finish
endif

if exists("b:current_syntax")
  finish
endif

syn region PaludisMirrorsConfComment start=/^\s*#/ end=/$/

syn match  PaludisMirrorsConfName /^[a-zA-Z0-9\-_+]\+\S\@!/
	    \ nextgroup=PaludisMirrorsConfURI,PaludisMirrorsConfContinuation skipwhite
syn match  PaludisMirrorsConfSet /^[*]\S\@!/
	    \ nextgroup=PaludisMirrorsConfURI,PaludisMirrorsConfContinuation skipwhite
syn match  PaludisMirrorsConfURI contained /[a-zA-Z0-9\-_+]\+:\S\+/
	    \ nextgroup=PaludisMirrorsConfURI,PaludisMirrorsConfContinuation skipwhite
syn match  PaludisMirrorsConfContinuation contained /\\$/
	    \ nextgroup=PaludisMirrorsConfURI,PaludisMirrorsConfContinuation skipwhite skipnl

hi def link PaludisMirrorsConfComment          Comment
hi def link PaludisMirrorsConfName             Identifier
hi def link PaludisMirrorsConfSet              Special
hi def link PaludisMirrorsConfURI              Keyword
hi def link PaludisMirrorsConfContinuation     Preproc

let b:current_syntax = "paludis-mirrors-conf"