blob: 1276f2bd9dc198d936520074f3e6cefa734d304b [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" 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
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020011" quit when a syntax file was already loaded
12if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000013 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.
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020032" Only when an item doesn't have highlighting yet
Bram Moolenaar071d4272004-06-13 20:20:40 +000033
Bram Moolenaarf37506f2016-08-31 22:22:10 +020034hi 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
Bram Moolenaar071d4272004-06-13 20:20:40 +000041
Bram Moolenaar071d4272004-06-13 20:20:40 +000042
43let b:current_syntax = "ecd"
44" vim: ts=8