Mercurial > vim
annotate runtime/syntax/ecd.vim @ 26480:cf986610be6a v8.2.3770
patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Commit: https://github.com/vim/vim/commit/dee78e1ce857985c06ff18e20daeadfe1622b8ae
Author: ichizok <gclient.gaap@gmail.com>
Date: Thu Dec 9 21:08:01 2021 +0000
patch 8.2.3770: new compiler warnings from clang-12 and clang-13
Problem: New compiler warnings from clang-12 and clang-13.
Solution: Adjust CI and suppress some warnings. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/9314)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 Dec 2021 22:15:03 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 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 | |
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 | |
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 | 13 finish |
14 endif | |
15 | |
16 syn case ignore | |
17 | |
18 " specials | |
19 syn match ecdComment "^\s*#.*" | |
20 | |
21 " options and values | |
22 syn match ecdAttr "^\s*[a-zA-Z]\S*\s*[=].*$" contains=ecdAttrN,ecdAttrV | |
23 syn match ecdAttrN contained "^.*="me=e-1 | |
24 syn match ecdAttrV contained "=.*$"ms=s+1 | |
25 | |
26 " tags | |
27 syn region ecdTag start=+<+ end=+>+ contains=ecdTagN,ecdTagError | |
28 syn match ecdTagN contained +<[/\s]*[-a-zA-Z0-9_]\++ms=s+1 | |
29 syn match ecdTagError contained "[^>]<"ms=s+1 | |
30 | |
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 | 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 | 41 |
42 | |
43 let b:current_syntax = "ecd" | |
44 " vim: ts=8 |