Mercurial > vim
annotate runtime/syntax/change.vim @ 10678:c647f01d6dbd v8.0.0229
patch 8.0.0229: local 'formatprg' option value leaks
commit https://github.com/vim/vim/commit/24a2d416ec261829ff7fd29f7b66739c96dd6513
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 24 17:48:36 2017 +0100
patch 8.0.0229: local 'formatprg' option value leaks
Problem: When freeing a buffer the local value of the 'formatprg' option is
not cleared.
Solution: Add missing change.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Jan 2017 18:00:05 +0100 |
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 |