annotate runtime/syntax/cvsrc.vim @ 19983:8f2bc094acee v8.2.0547

patch 8.2.0547: Win32: restoring screen not always done right Commit: https://github.com/vim/vim/commit/e7f234120f71a75f0c7c2a67e0b70c6450c50a02 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 11 22:38:34 2020 +0200 patch 8.2.0547: Win32: restoring screen not always done right Problem: Win32: restoring screen not always done right. Solution: Use a more appropriate method. (Nobuhiro Takasaki, closes https://github.com/vim/vim/issues/5909)
author Bram Moolenaar <Bram@vim.org>
date Sat, 11 Apr 2020 22:45:04 +0200
parents 1218c5353e2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
2 " Language: cvs(1) RC file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
4 " Latest Revision: 2006-04-19
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
6 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
11 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
13 syn region cvsrcString display oneline start=+"+ skip=+\\\\\|\\\\"+ end=+"+
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
14 syn region cvsrcString display oneline start=+'+ skip=+\\\\\|\\\\'+ end=+'+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
16 syn match cvsrcNumber display '\<\d\+\>'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
18 syn match cvsrcBegin display '^' nextgroup=cvsrcCommand skipwhite
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
20 syn region cvsrcCommand contained transparent matchgroup=cvsrcCommand
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
21 \ start='add\|admin\|checkout\|commit\|cvs\|diff'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
22 \ start='export\|history\|import\|init\|log'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
23 \ start='rdiff\|release\|remove\|rtag\|status\|tag'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
24 \ start='update'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
25 \ end='$'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
26 \ contains=cvsrcOption,cvsrcString,cvsrcNumber
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
27 \ keepend
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
29 syn match cvsrcOption contained display '-\a\+'
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
30
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
31 hi def link cvsrcString String
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
32 hi def link cvsrcNumber Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
33 hi def link cvsrcCommand Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
34 hi def link cvsrcOption Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 let b:current_syntax = "cvsrc"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
38 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
39 unlet s:cpo_save