Mercurial > vim
annotate runtime/syntax/change.vim @ 18418:2329061e6289 v8.1.2203
patch 8.1.2203: running libvterm tests without the +terminal feature
Commit: https://github.com/vim/vim/commit/823edd1eed00329e4b269991155bbdb1d9aaa540
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 23 22:35:36 2019 +0200
patch 8.1.2203: running libvterm tests without the +terminal feature
Problem: Running libvterm tests without the +terminal feature.
Solution: Only add the libvterm test target when building libvterm.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 23 Oct 2019 22:45:03 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: WEB Changes | |
3 " Maintainer: Andreas Scherer <andreas.scherer@pobox.com> | |
4 " Last Change: April 25, 2001 | |
5 | |
6 " Details of the change mechanism of the WEB and CWEB languages can be found | |
7 " in the articles by Donald E. Knuth and Silvio Levy cited in "web.vim" and | |
8 " "cweb.vim" respectively. | |
9 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
10 " 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
|
11 if exists("b:current_syntax") |
7 | 12 finish |
13 endif | |
14 | |
15 " We distinguish two groups of material, (a) stuff between @x..@y, and | |
16 " (b) stuff between @y..@z. WEB/CWEB ignore everything else in a change file. | |
17 syn region changeFromMaterial start="^@x.*$"ms=e+1 end="^@y.*$"me=s-1 | |
18 syn region changeToMaterial start="^@y.*$"ms=e+1 end="^@z.*$"me=s-1 | |
19 | |
20 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
21 " Only when an item doesn't have highlighting yet |
7 | 22 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
23 hi def link changeFromMaterial String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
24 hi def link changeToMaterial Statement |
7 | 25 |
26 | |
27 let b:current_syntax = "change" | |
28 | |
29 " vim: ts=8 |