Mercurial > vim
annotate runtime/syntax/change.vim @ 32429:bfc23ba1bba5 v9.0.1546
patch 9.0.1546: some commands for opening a file don't use 'switchbuf'
Commit: https://github.com/vim/vim/commit/54be5fb382d2bf25fd1b17ddab8b21f599019b81
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Fri May 12 17:49:13 2023 +0100
patch 9.0.1546: some commands for opening a file don't use 'switchbuf'
Problem: Some commands for opening a file don't use 'switchbuf'.
Solution: Use 'switchbuf' for more commands. (Yegappan Lakshmanan,
closes #12383, closes #12381)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 May 2023 19:00: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 |