annotate runtime/syntax/svn.vim @ 6602:c77ef1bf9623 v7.4.627

updated for version 7.4.627 Problem: The last screen cell is not updated. Solution: Respect the "tn" termcap feature. (Hayaki Saito)
author Bram Moolenaar <bram@vim.org>
date Tue, 10 Feb 2015 19:20:37 +0100
parents d060c429b21f
children 43efa4f5a8ea
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " For version 5.x: Clear all syntax items.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " For version 6.x: Quit when a syntax file was already loaded.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
26 syn spell toplevel
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
27
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
28 syn match svnFirstLine "\%^.*" nextgroup=svnRegion,svnBlank skipnl
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
29 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
30 syn match svnOverflow ".*" contained contains=@Spell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
31 syn match svnBlank "^.*" contained contains=@Spell
3713
9910cbff5f16 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3492
diff changeset
32
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
33 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
34 syn match svnRemoved "^D .*$" contained contains=@NoSpell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
35 syn match svnRenamed "^R[ M][ U][ +] .*$" contained contains=@NoSpell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
36 syn match svnAdded "^A[ M][ U][ +] .*$" contained contains=@NoSpell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
37 syn match svnModified "^M[ M][ U] .*$" contained contains=@NoSpell
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
38 syn match svnProperty "^_M[ U] .*$" contained contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " Synchronization.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn sync clear
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
42 syn sync match svnSync grouphere svnRegion "^--.*--$"me=s-1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " For version 5.7 and earlier: only when not done already.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " For version 5.8 and later: only when an item doesn't have highlighting yet.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 if version >= 508 || !exists("did_svn_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 if version <= 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 let did_svn_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
55 HiLink svnSummary Keyword
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
56 HiLink svnBlank Error
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
57
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
58 HiLink svnRegion Comment
5466
d060c429b21f Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3713
diff changeset
59 HiLink svnDelimiter NonText
810
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
60 HiLink svnRemoved Constant
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
61 HiLink svnAdded Identifier
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
62 HiLink svnModified Special
9f345c48220b updated for version 7.0c
vimboss
parents: 7
diff changeset
63 HiLink svnProperty Special
3492
3482d151136b Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3356
diff changeset
64 HiLink svnRenamed Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 let b:current_syntax = "svn"