Mercurial > vim
annotate runtime/syntax/change.vim @ 12549:62e8cef76508 v8.0.1153
patch 8.0.1153: no tests for diff_hlID() and diff_filler()
commit https://github.com/vim/vim/commit/97fbc404fc56f76df12b2d2658b1d6efda28d5dd
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 26 19:41:46 2017 +0200
patch 8.0.1153: no tests for diff_hlID() and diff_filler()
Problem: No tests for diff_hlID() and diff_filler().
Solution: Add tests. (Dominique Pelle, closes https://github.com/vim/vim/issues/2156)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 26 Sep 2017 19:45:04 +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 |