Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
ENH: Special highlighting for first (summary) line (length-limited) a…
Browse files Browse the repository at this point in the history
…nd following blank line.

Taken from Tim Pope's syntax/gitcommit.vim.
  • Loading branch information
inkarkat committed Oct 22, 2013
1 parent 4325df1 commit e33e600
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions syntax/svn.vim
Expand Up @@ -20,6 +20,11 @@ elseif exists("b:current_syntax")
finish
endif

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 svnText start="\%^" end="^--.*--$"me=s-1 contains=@Spell

syn region svnRegion start="^--.*--$" end="\%$" contains=ALL
Expand All @@ -44,6 +49,9 @@ 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 svnRemoved Constant
HiLink svnAdded Identifier
Expand Down

0 comments on commit e33e600

Please sign in to comment.