annotate runtime/syntax/ecd.vim @ 12405:6ef5e636f246 v8.0.1082

patch 8.0.1082: tests fail when run under valgrind commit https://github.com/vim/vim/commit/9d18961323a2a5c3b609c98ce0d78613c71f3532 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 9 18:11:00 2017 +0200 patch 8.0.1082: tests fail when run under valgrind Problem: Tests fail when run under valgrind. Solution: Increase waiting times.
author Christian Brabandt <cb@256bit.org>
date Sat, 09 Sep 2017 18:15:04 +0200
parents 46763b01cd9a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: ecd (Embedix Component Description) files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: John Beppu <beppu@opensource.lineo.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://opensource.lineo.com/~beppu/prose/ecd_vim.html
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2001 Sep 27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " An ECD file contains meta-data for packages in the Embedix Linux distro.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " This syntax file was derived from apachestyle.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " by Christian Hammers <ch@westend.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
11 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
12 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " specials
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match ecdComment "^\s*#.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " options and values
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match ecdAttr "^\s*[a-zA-Z]\S*\s*[=].*$" contains=ecdAttrN,ecdAttrV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match ecdAttrN contained "^.*="me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match ecdAttrV contained "=.*$"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " tags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region ecdTag start=+<+ end=+>+ contains=ecdTagN,ecdTagError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match ecdTagN contained +<[/\s]*[-a-zA-Z0-9_]\++ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match ecdTagError contained "[^>]<"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
32 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
34 hi def link ecdComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
35 hi def link ecdAttr Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
36 hi def link ecdAttrN Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
37 hi def link ecdAttrV Value
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
38 hi def link ecdTag Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
39 hi def link ecdTagN Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
40 hi def link ecdTagError Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 let b:current_syntax = "ecd"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " vim: ts=8