annotate runtime/syntax/rcs.vim @ 11197:7f355d8cd634 v8.0.0485

patch 8.0.0485: not all windows commands are tested commit https://github.com/vim/vim/commit/4520d440c59034452d1450b27fcd56825c090687 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 19 16:09:46 2017 +0100 patch 8.0.0485: not all windows commands are tested Problem: Not all windows commands are tested. Solution: Add more tests for windows commands. (Dominique Pelle, closes #1575) Run test_autocmd separately, it interferes with other tests. Fix tests that depended on side effects.
author Christian Brabandt <cb@256bit.org>
date Sun, 19 Mar 2017 16:15:04 +0100
parents 46763b01cd9a
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
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
2 " Language: RCS file
3356
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
3 " Maintainer: Dmitry Vasiliev <dima at hlabs dot org>
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
4 " URL: https://github.com/hdima/vim-scripts/blob/master/syntax/rcs.vim
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
5 " Last Change: 2012-02-11
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
6 " Filenames: *,v
3356
b37888de599c Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
7 " Version: 1.12
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
8
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Options:
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
10 " rcs_folding = 1 For folding strings
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3356
diff changeset
12 " quit when a syntax file was already loaded.
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3356
diff changeset
13 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " RCS file must end with a newline.
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
18 syn match rcsEOFError ".\%$" containedin=ALL
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Keywords.
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
21 syn keyword rcsKeyword head branch access symbols locks strict
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
22 syn keyword rcsKeyword comment expand date author state branches
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
23 syn keyword rcsKeyword next desc log
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
24 syn keyword rcsKeyword text nextgroup=rcsTextStr skipwhite skipempty
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Revision numbers and dates.
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
27 syn match rcsNumber "\<[0-9.]\+\>" display
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " Strings.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 if exists("rcs_folding") && has("folding")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Folded strings.
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
32 syn region rcsString matchgroup=rcsString start="@" end="@" skip="@@" fold contains=rcsSpecial
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
33 syn region rcsTextStr matchgroup=rcsTextStr start="@" end="@" skip="@@" fold contained contains=rcsSpecial,rcsDiffLines
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 else
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
35 syn region rcsString matchgroup=rcsString start="@" end="@" skip="@@" contains=rcsSpecial
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
36 syn region rcsTextStr matchgroup=rcsTextStr start="@" end="@" skip="@@" contained contains=rcsSpecial,rcsDiffLines
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 endif
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
38 syn match rcsSpecial "@@" contained
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
39 syn match rcsDiffLines "[da]\d\+ \d\+$" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " Synchronization.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn sync clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 if exists("rcs_folding") && has("folding")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn sync fromstart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " We have incorrect folding if following sync patterns is turned on.
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
47 syn sync match rcsSync grouphere rcsString "[0-9.]\+\(\s\|\n\)\+log\(\s\|\n\)\+@"me=e-1
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
48 syn sync match rcsSync grouphere rcsTextStr "@\(\s\|\n\)\+text\(\s\|\n\)\+@"me=e-1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 3356
diff changeset
52 " Only when an item doesn't have highlighting yet.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
54 hi def link rcsKeyword Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
55 hi def link rcsNumber Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
56 hi def link rcsString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
57 hi def link rcsTextStr String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
58 hi def link rcsSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
59 hi def link rcsDiffLines Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
60 hi def link rcsEOFError Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 let b:current_syntax = "rcs"