ecd.vim 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. " An ECD file contains meta-data for packages in the Embedix Linux distro.
  7. " This syntax file was derived from apachestyle.vim
  8. " by Christian Hammers <ch@westend.com>
  9. " quit when a syntax file was already loaded
  10. if exists("b:current_syntax")
  11. finish
  12. endif
  13. syn case ignore
  14. " specials
  15. syn match ecdComment "^\s*#.*"
  16. " options and values
  17. syn match ecdAttr "^\s*[a-zA-Z]\S*\s*[=].*$" contains=ecdAttrN,ecdAttrV
  18. syn match ecdAttrN contained "^.*="me=e-1
  19. syn match ecdAttrV contained "=.*$"ms=s+1
  20. " tags
  21. syn region ecdTag start=+<+ end=+>+ contains=ecdTagN,ecdTagError
  22. syn match ecdTagN contained +<[/\s]*[-a-zA-Z0-9_]\++ms=s+1
  23. syn match ecdTagError contained "[^>]<"ms=s+1
  24. " Define the default highlighting.
  25. " Only when an item doesn't have highlighting yet
  26. hi def link ecdComment Comment
  27. hi def link ecdAttr Type
  28. hi def link ecdAttrN Statement
  29. hi def link ecdAttrV Value
  30. hi def link ecdTag Function
  31. hi def link ecdTagN Statement
  32. hi def link ecdTagError Error
  33. let b:current_syntax = "ecd"
  34. " vim: ts=8