2014-07-10 21:05:51 -07:00
|
|
|
" Vim syntax file
|
|
|
|
" 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: 2013-11-08
|
|
|
|
" Filenames: svn-commit*.tmp
|
|
|
|
" Version: 1.10
|
|
|
|
|
|
|
|
" Contributors:
|
|
|
|
"
|
|
|
|
" List of the contributors in alphabetical order:
|
|
|
|
"
|
|
|
|
" A. S. Budden
|
|
|
|
" Ingo Karkat
|
|
|
|
" Myk Taylor
|
|
|
|
" Stefano Zacchiroli
|
|
|
|
|
2017-04-28 12:06:44 -07:00
|
|
|
" quit when a syntax file was already loaded.
|
|
|
|
if exists("b:current_syntax")
|
2014-07-10 21:05:51 -07:00
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
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 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
|
|
|
|
syn sync match svnSync grouphere svnRegion "^--.*--$"me=s-1
|
|
|
|
|
|
|
|
" Define the default highlighting.
|
2017-04-28 12:06:44 -07:00
|
|
|
" Only when an item doesn't have highlighting yet.
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link svnSummary Keyword
|
|
|
|
hi def link svnBlank Error
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link svnRegion Comment
|
|
|
|
hi def link svnDelimiter NonText
|
|
|
|
hi def link svnRemoved Constant
|
|
|
|
hi def link svnAdded Identifier
|
|
|
|
hi def link svnModified Special
|
|
|
|
hi def link svnProperty Special
|
|
|
|
hi def link svnRenamed Special
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
let b:current_syntax = "svn"
|