annotate runtime/syntax/svn.vim @ 20607:9f5f64cc9720 v8.2.0857

patch 8.2.0857: GTK cell height can be a pixel too much Commit: https://github.com/vim/vim/commit/5cd1cb9ff9d04979ff4cbc36ca8416d83364505d Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 31 13:53:04 2020 +0200 patch 8.2.0857: GTK cell height can be a pixel too much Problem: GTK cell height can be a pixel too much. Solution: Subtract 3 instead of 1 when rounding. (closes https://github.com/vim/vim/issues/6168)
author Bram Moolenaar <Bram@vim.org>
date Sun, 31 May 2020 14:00:03 +0200
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: Subversion (svn) commit 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/svn.vim
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
5 " Last Change: 2013-11-08
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
6 " Filenames: svn-commit*.tmp
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
7 " Version: 1.10
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
8
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
9 " Contributors:
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
10 "
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
11 " List of the contributors in alphabetical order:
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
12 "
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 810
diff changeset
13 " A. S. Budden
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
14 " Ingo Karkat
3492
3482d151136b Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3356
diff changeset
15 " Myk Taylor
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
16 " Stefano Zacchiroli
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5466
diff changeset
18 " quit when a syntax file was already loaded.
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5466
diff changeset
19 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
23 syn spell toplevel
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
24
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
25 syn match svnFirstLine "\%^.*" nextgroup=svnRegion,svnBlank skipnl
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
26 syn match svnSummary "^.\{0,50\}" contained containedin=svnFirstLine nextgroup=svnOverflow contains=@Spell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
27 syn match svnOverflow ".*" contained contains=@Spell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
28 syn match svnBlank "^.*" contained contains=@Spell
3713
9910cbff5f16 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3492
diff changeset
29
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
30 syn region svnRegion end="\%$" matchgroup=svnDelimiter start="^--.*--$" contains=svnRemoved,svnRenamed,svnAdded,svnModified,svnProperty,@NoSpell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
31 syn match svnRemoved "^D .*$" contained contains=@NoSpell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
32 syn match svnRenamed "^R[ M][ U][ +] .*$" contained contains=@NoSpell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
33 syn match svnAdded "^A[ M][ U][ +] .*$" contained contains=@NoSpell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
34 syn match svnModified "^M[ M][ U] .*$" contained contains=@NoSpell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
35 syn match svnProperty "^_M[ U] .*$" contained contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " Synchronization.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn sync clear
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
39 syn sync match svnSync grouphere svnRegion "^--.*--$"me=s-1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5466
diff changeset
42 " Only when an item doesn't have highlighting yet.
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 5466
diff changeset
43
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
44 hi def link svnSummary Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
45 hi def link svnBlank Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
47 hi def link svnRegion Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
48 hi def link svnDelimiter NonText
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
49 hi def link svnRemoved Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
50 hi def link svnAdded Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
51 hi def link svnModified Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
52 hi def link svnProperty Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
53 hi def link svnRenamed Special
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
54
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 let b:current_syntax = "svn"