diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-11-09 03:41:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-11-09 03:41:58 +0100 |
commit | 8e69b4a319d7933d491ac49a2812c964e8dc85b3 (patch) | |
tree | f3060a7cd9ab8ca36271aad3eb74809d851140c2 /runtime/syntax | |
parent | 45d3b1454c1001001ef97746556d3142788a8383 (diff) | |
download | vim-8e69b4a319d7933d491ac49a2812c964e8dc85b3.zip |
Updated runtime files.
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/svn.vim | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/runtime/syntax/svn.vim b/runtime/syntax/svn.vim index 83803e331..6536d6d11 100644 --- a/runtime/syntax/svn.vim +++ b/runtime/syntax/svn.vim @@ -2,15 +2,18 @@ " Language: Subversion (svn) commit file " Maintainer: Dmitry Vasiliev <dima at hlabs dot org> " URL: https://github.com/hdima/vim-scripts/blob/master/syntax/svn.vim -" Last Change: 2012-07-21 +" Last Change: 2013-11-08 " Filenames: svn-commit*.tmp -" Version: 1.9 +" Version: 1.10 " Contributors: -" Stefano Zacchiroli +" +" List of the contributors in alphabetical order: +" " A. S. Budden -" Myk Taylor " Ingo Karkat +" Myk Taylor +" Stefano Zacchiroli " For version 5.x: Clear all syntax items. " For version 6.x: Quit when a syntax file was already loaded. @@ -20,14 +23,19 @@ elseif exists("b:current_syntax") finish endif -syn region svnText start="\%^" end="^--.*--$"me=s-1 contains=@Spell +syn spell toplevel + +syn match svnFirstLine "\%^.*" nextgroup=svnRegion,svnBlank skipnl +syn match svnSummary "^.\{0,50\}" contained containedin=svnFirstLine nextgroup=svnOverflow contains=@Spell +syn match svnOverflow ".*" contained contains=@Spell +syn match svnBlank "^.*" contained contains=@Spell -syn region svnRegion start="^--.*--$" end="\%$" contains=ALL -syn match svnRemoved "^D .*$" contained -syn match svnRenamed "^R[ M][ U][ +] .*$" contained -syn match svnAdded "^A[ M][ U][ +] .*$" contained -syn match svnModified "^M[ M][ U] .*$" contained -syn match svnProperty "^_M[ U] .*$" contained +syn region svnRegion end="\%$" matchgroup=svnDelimiter start="^--.*--$" contains=svnRemoved,svnRenamed,svnAdded,svnModified,svnProperty,@NoSpell +syn match svnRemoved "^D .*$" contained contains=@NoSpell +syn match svnRenamed "^R[ M][ U][ +] .*$" contained contains=@NoSpell +syn match svnAdded "^A[ M][ U][ +] .*$" contained contains=@NoSpell +syn match svnModified "^M[ M][ U] .*$" contained contains=@NoSpell +syn match svnProperty "^_M[ U] .*$" contained contains=@NoSpell " Synchronization. syn sync clear @@ -44,7 +52,11 @@ if version >= 508 || !exists("did_svn_syn_inits") command -nargs=+ HiLink hi def link <args> endif + HiLink svnSummary Keyword + HiLink svnBlank Error + HiLink svnRegion Comment + HiLink svnDelimiter NonText HiLink svnRemoved Constant HiLink svnAdded Identifier HiLink svnModified Special |