aboutsummaryrefslogtreecommitdiff
blob: 4315d91c4b6667806237adc71db0bfd1abe1ba19 (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
" Vim syntax file
" Language:	Gentoo package.keywords files
" Author:	Ciaran McCreesh <ciaranm@gentoo.org>
" Copyright:	Copyright (c) 2004-2005 Ciaran McCreesh
" Licence:	You may redistribute this under the same terms as Vim itself
"
" Syntax highlighting for Gentoo package.keywords files. Requires vim 6.3 or
" later.
"

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

if exists("b:current_syntax")
    finish
endif

runtime syntax/gentoo-package-common.vim

syn match  GentooPackageKeywordsAtom /^[\ \t]*[^ \t\n#]\+\S\+\/\S\+/
    \ nextgroup=GentooPackageKeywordsKeyword skipwhite
syn match  GentooPackageKeywordsKeyword contained /-\?[-~]\?\([a-z0-9\-]\+\|\*\)/
    \ nextgroup=GentooPackageKeywordsKeyword skipwhite

hi def link GentooPackageKeywordsAtom             Identifier
hi def link GentooPackageKeywordsKeyword          Keyword

let b:current_syntax = "gentoo-package-keywords"