1" Vim syntax file 2" Language: ecd (Embedix Component Description) files 3" Maintainer: John Beppu <[email protected]> 4" URL: http://opensource.lineo.com/~beppu/prose/ecd_vim.html 5" Last Change: 2001 Sep 27 6 7" An ECD file contains meta-data for packages in the Embedix Linux distro. 8" This syntax file was derived from apachestyle.vim 9" by Christian Hammers <[email protected]> 10 11" quit when a syntax file was already loaded 12if exists("b:current_syntax") 13 finish 14endif 15 16syn case ignore 17 18" specials 19syn match ecdComment "^\s*#.*" 20 21" options and values 22syn match ecdAttr "^\s*[a-zA-Z]\S*\s*[=].*$" contains=ecdAttrN,ecdAttrV 23syn match ecdAttrN contained "^.*="me=e-1 24syn match ecdAttrV contained "=.*$"ms=s+1 25 26" tags 27syn region ecdTag start=+<+ end=+>+ contains=ecdTagN,ecdTagError 28syn match ecdTagN contained +<[/\s]*[-a-zA-Z0-9_]\++ms=s+1 29syn match ecdTagError contained "[^>]<"ms=s+1 30 31" Define the default highlighting. 32" Only when an item doesn't have highlighting yet 33 34hi def link ecdComment Comment 35hi def link ecdAttr Type 36hi def link ecdAttrN Statement 37hi def link ecdAttrV Value 38hi def link ecdTag Function 39hi def link ecdTagN Statement 40hi def link ecdTagError Error 41 42 43let b:current_syntax = "ecd" 44" vim: ts=8 45