aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-03-09 14:07:05 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-03-09 14:07:05 +0000
commita297ce7c92fc48b2e5f7df4a2624c25ddab3b81d (patch)
treef3d4c5c11709d26bebdf0e7e424b569dcd992253 /vim
parent410f8b38e6bb0feb13e2d5e5c3ac34c4e87c0fee (diff)
downloadpaludis-a297ce7c92fc48b2e5f7df4a2624c25ddab3b81d.tar.gz
paludis-a297ce7c92fc48b2e5f7df4a2624c25ddab3b81d.tar.xz
world is now in env, not repos. Fixes: ticket:421
Diffstat (limited to 'vim')
-rw-r--r--vim/syntax/paludis-environment-conf.vim4
-rw-r--r--vim/syntax/paludis-repositories-conf.vim8
2 files changed, 8 insertions, 4 deletions
diff --git a/vim/syntax/paludis-environment-conf.vim b/vim/syntax/paludis-environment-conf.vim
index 9b671e3df..6318746a4 100644
--- a/vim/syntax/paludis-environment-conf.vim
+++ b/vim/syntax/paludis-environment-conf.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Paludis environment.conf files
" Author: Ciaran McCreesh
-" Copyright: Copyright (c) 2007 Ciaran McCreesh
+" Copyright: Copyright (c) 2007, 2008 Ciaran McCreesh
" Licence: You may redistribute this under the same terms as Vim itself
"
" Syntax highlighting for Paludis environment.conf files.
@@ -38,7 +38,7 @@ syn region PaludisEnvironmentConfString contained start=/"/ end=/"/
\ skipwhite
syn keyword PaludisEnvironmentConfKnownKey contained
- \ reduced_username portage_compatible distribution
+ \ reduced_username portage_compatible distribution world
syn match PaludisEnvironmentConfVariable contained /\$\({[^}]\+}\|[a-zA-Z0-9_]\+\)/ skipwhite
diff --git a/vim/syntax/paludis-repositories-conf.vim b/vim/syntax/paludis-repositories-conf.vim
index fe4ad89d1..598db1800 100644
--- a/vim/syntax/paludis-repositories-conf.vim
+++ b/vim/syntax/paludis-repositories-conf.vim
@@ -18,7 +18,7 @@ endif
syn region PaludisRepositoriesConfComment start=/^\s*#/ end=/$/
syn region PaludisRepositoriesConfKey start=/^\(\s*[^#]\)\@=/ end=/=\@=/
- \ contains=PaludisRepositoriesConfKnownKey
+ \ contains=PaludisRepositoriesConfKnownKey,PaludisRepositoriesConfBadKey
syn match PaludisRepositoriesConfEquals /=/ skipwhite
\ nextgroup=PaludisRepositoriesConfValue
@@ -42,17 +42,21 @@ syn keyword PaludisRepositoriesConfKnownKey contained
\ location distdir format builddir library sync root yaml_uri
\ master_repository profiles pkgdir setsdir securitydir newsdir
\ names_cache sync sync_options eclassdirs cache write_cache
- \ world provides_cache importance layout use_manifest
+ \ provides_cache importance layout use_manifest
\ binary_uri_prefix binary_keywords binary_destination
\ eapi_when_unspecified eapi_when_unknown profile_eapi
\ name
+syn keyword PaludisRepositoriesConfBadKey contained
+ \ world
+
syn keyword PaludisRepositoriesConfKnownValue contained
\ use require ignore
syn match PaludisRepositoriesConfVariable contained /\$\({[^}]\+}\|[a-zA-Z0-9_]\+\)/ skipwhite
hi def link PaludisRepositoriesConfKnownKey Keyword
+hi def link PaludisRepositoriesConfBadKey Error
hi def link PaludisRepositoriesConfKnownValue Keyword
hi def link PaludisRepositoriesConfString String
hi def link PaludisRepositoriesConfUnquoted Constant