2 " Language: ecd (Embedix Component Description) files
3 " Maintainer: John Beppu <beppu@lineo.com>
4 " URL: http://opensource.lineo.com/~beppu/prose/ecd_vim.html
5 " Last Change: 2001 May 10
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>
11 " Quit when a syntax file was already loaded
14 elseif exists("b:current_syntax")
21 syn match ecdComment "^\s*#.*"
24 syn match ecdAttr "^\s*[a-zA-Z]\S*\s*[=].*$" contains=ecdAttrN,ecdAttrV
25 syn match ecdAttrN contained "^.*="me=e-1
26 syn match ecdAttrV contained "=.*$"ms=s+1
29 syn region ecdTag start=+<+ end=+>+ contains=ecdTagN,ecdTagError
30 syn match ecdTagN contained +<[/\s]*[-a-zA-Z0-9_]\++ms=s+1
31 syn match ecdTagError contained "[^>]<"ms=s+1
33 " Define the default highlighting.
34 " For version 5.7 and earlier: only when not done already
35 " For version 5.8 and later: only when an item doesn't have highlighting yet
36 if version >= 508 || !exists("did_ecd_syn_inits")
38 let did_ecd_syn_inits = 1
39 command -nargs=+ HiLink hi link <args>
41 command -nargs=+ HiLink hi def link <args>
44 HiLink ecdComment Comment
46 HiLink ecdAttrN Statement
48 HiLink ecdTag Function
49 HiLink ecdTagN Statement
50 HiLink ecdTagError Error
55 let b:current_syntax = "ecd"