aboutsummaryrefslogtreecommitdiff
path: root/vim/syntax/paludis-package-mask-conf.vim
blob: 2b9e9a676f66462c503725f8c969e82bfd82e7c6 (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
" Vim syntax file
" Language:     Paludis package_{un,}mask.conf files
" Author:       Ciaran McCreesh
" Copyright:    Copyright (c) 2007, 2010 Ciaran McCreesh
" Licence:      You may redistribute this under the same terms as Vim itself
"
" Syntax highlighting for Paludis package_{un,}mask.conf files.
"

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

if exists("b:current_syntax")
  finish
endif

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

syn match  PaludisPackageMaskConfPDS /^[^ \t#\/]\+\/[^ \t#\/]\+\s*/
            \ contains=PaludisPackageMaskConfWildcard
syn match  PaludisPackageMaskConfWildcard contained /\(\*\/\@=\|\/\@<=\*\)/
syn match  PaludisPackageMaskConfSet /^[^ \t#\/]\+\S\@!/

hi def link PaludisPackageMaskConfComment          Comment
hi def link PaludisPackageMaskConfPDS              Identifier
hi def link PaludisPackageMaskConfSet              Special
hi def link PaludisPackageMaskConfWildcard         Special

let b:current_syntax = "paludis-package-mask-conf"