ecd.vim (1229B)
1 " Vim syntax file 2 " Language: ecd (Embedix Component Description) files 3 " Maintainer: John Beppu <beppu@opensource.lineo.com> 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 <ch@westend.com> 10 11 " quit when a syntax file was already loaded 12 if exists("b:current_syntax") 13 finish 14 endif 15 16 syn case ignore 17 18 " specials 19 syn match ecdComment "^\s*#.*" 20 21 " options and values 22 syn match ecdAttr "^\s*[a-zA-Z]\S*\s*[=].*$" contains=ecdAttrN,ecdAttrV 23 syn match ecdAttrN contained "^.*="me=e-1 24 syn match ecdAttrV contained "=.*$"ms=s+1 25 26 " tags 27 syn region ecdTag start=+<+ end=+>+ contains=ecdTagN,ecdTagError 28 syn match ecdTagN contained +<[/\s]*[-a-zA-Z0-9_]\++ms=s+1 29 syn match ecdTagError contained "[^>]<"ms=s+1 30 31 " Define the default highlighting. 32 " Only when an item doesn't have highlighting yet 33 34 hi def link ecdComment Comment 35 hi def link ecdAttr Type 36 hi def link ecdAttrN Statement 37 hi def link ecdAttrV Value 38 hi def link ecdTag Function 39 hi def link ecdTagN Statement 40 hi def link ecdTagError Error 41 42 43 let b:current_syntax = "ecd" 44 " vim: ts=8