Mercurial > vim
annotate runtime/syntax/svn.vim @ 11010:c004e17fa36b v8.0.0394
patch 8.0.0394: tabs are not aligned when scrolling horizontally
commit https://github.com/vim/vim/commit/abc39ab642791ae3d22a524516eeedb673a95d9d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 1 18:04:05 2017 +0100
patch 8.0.0394: tabs are not aligned when scrolling horizontally
Problem: Tabs are not aligned when scrolling horizontally and a Tab doesn't
fit. (Axel Bender)
Solution: Handle a Tab as a not fitting character. (Christian Brabandt)
Also fix that ":redraw" does not scroll horizontally to show the
cursor. And fix the test that depended on the old behavior.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 01 Mar 2017 18:15:04 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
810 | 2 " Language: Subversion (svn) commit file |
3356 | 3 " Maintainer: Dmitry Vasiliev <dima at hlabs dot org> |
4 " URL: https://github.com/hdima/vim-scripts/blob/master/syntax/svn.vim | |
5466 | 5 " Last Change: 2013-11-08 |
810 | 6 " Filenames: svn-commit*.tmp |
5466 | 7 " Version: 1.10 |
810 | 8 |
9 " Contributors: | |
5466 | 10 " |
11 " List of the contributors in alphabetical order: | |
12 " | |
1698 | 13 " A. S. Budden |
5466 | 14 " Ingo Karkat |
3492 | 15 " Myk Taylor |
5466 | 16 " Stefano Zacchiroli |
7 | 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 | 20 finish |
21 endif | |
22 | |
5466 | 23 syn spell toplevel |
24 | |
25 syn match svnFirstLine "\%^.*" nextgroup=svnRegion,svnBlank skipnl | |
26 syn match svnSummary "^.\{0,50\}" contained containedin=svnFirstLine nextgroup=svnOverflow contains=@Spell | |
27 syn match svnOverflow ".*" contained contains=@Spell | |
28 syn match svnBlank "^.*" contained contains=@Spell | |
3713 | 29 |
5466 | 30 syn region svnRegion end="\%$" matchgroup=svnDelimiter start="^--.*--$" contains=svnRemoved,svnRenamed,svnAdded,svnModified,svnProperty,@NoSpell |
31 syn match svnRemoved "^D .*$" contained contains=@NoSpell | |
32 syn match svnRenamed "^R[ M][ U][ +] .*$" contained contains=@NoSpell | |
33 syn match svnAdded "^A[ M][ U][ +] .*$" contained contains=@NoSpell | |
34 syn match svnModified "^M[ M][ U] .*$" contained contains=@NoSpell | |
35 syn match svnProperty "^_M[ U] .*$" contained contains=@NoSpell | |
7 | 36 |
37 " Synchronization. | |
38 syn sync clear | |
810 | 39 syn sync match svnSync grouphere svnRegion "^--.*--$"me=s-1 |
7 | 40 |
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 | 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 | 54 |
7 | 55 |
56 let b:current_syntax = "svn" |