annotate runtime/syntax/ecd.vim @ 9246:6ee88fa405b3 v7.4.1906

commit https://github.com/vim/vim/commit/5f1032d2a55b9417a0a6fa225e35089c98a5a419 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 7 22:16:36 2016 +0200 patch 7.4.1906 Problem: Collapsing channel buffers and searching for NL does not work properly. (Xavier de Gary, Ramel Eshed) Solution: Do not assume the buffer contains a NUL or not. Change NUL bytes to NL to avoid the string is truncated.
author Christian Brabandt <cb@256bit.org>
date Tue, 07 Jun 2016 22:30:06 +0200
parents 3fc0f57ecb91
children 43efa4f5a8ea
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " specials
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match ecdComment "^\s*#.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " options and values
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match ecdAttr "^\s*[a-zA-Z]\S*\s*[=].*$" contains=ecdAttrN,ecdAttrV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match ecdAttrN contained "^.*="me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match ecdAttrV contained "=.*$"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " tags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region ecdTag start=+<+ end=+>+ contains=ecdTagN,ecdTagError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match ecdTagN contained +<[/\s]*[-a-zA-Z0-9_]\++ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match ecdTagError contained "[^>]<"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 if version >= 508 || !exists("did_ecd_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 let did_ecd_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 HiLink ecdComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 HiLink ecdAttr Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 HiLink ecdAttrN Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 HiLink ecdAttrV Value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 HiLink ecdTag Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink ecdTagN Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink ecdTagError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 let b:current_syntax = "ecd"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " vim: ts=8