" Vim syntax file " Language: Gentoo metadata.xml " Author: Ciaran McCreesh " Copyright: Copyright (c) 2004-2005 Ciaran McCreesh " Licence: You may redistribute this under the same terms as Vim itself " " Syntax highlighting for metadata.xml. Inherits from xml.vim. " if &compatible || v:version < 603 finish endif if exists("b:current_syntax") finish endif runtime! syntax/xml.vim unlet b:current_syntax syn cluster xmlTagHook add=metadataElement syn match metadataElement contained 'packages' syn match metadataElement contained 'herd' syn match metadataElement contained 'maintainer' syn match metadataElement contained 'email' syn match metadataElement contained 'name' syn match metadataElement contained 'description' syn match metadataElement contained 'longdescription' " upstream metadata info syn cluster xmlTagHook add=upstreamMetadata syn match upstreamMetadata contained 'upstream' syn match upstreamMetadata contained 'maintainer' syn match upstreamMetadata contained 'changelog' syn match upstreamMetadata contained 'doc' syn match upstreamMetadata contained 'bugs-to' syn match upstreamMetadata contained 'remote-id' " Glep 56 " TODO add support for required attributes syn match metadataElement contained 'use' syn match metadataElement contained 'flag' syn match metadataElement contained 'pkg' syn match metadataElement contained 'cat' syn match metadataElement contained 'catmetadata' syn match metadataElement contained 'pkgmetadata' hi def link metadataElement Keyword hi def link upstreamMetadata Keyword let b:current_syntax = "gentoo-metadata"