Start anew
[msysgit.git] / share / vim / vim58 / syntax / wdiff.vim
blobbd037f85585ae8bf962fe331ca7e937d9aa07f69
1 " Vim syntax file
2 " Language:     wDiff (wordwise diff)
3 " Maintainer:   Gerfried Fuchs <alfie@ist.org>
4 " Last Change:  25 Apr 2001
5 " URL:          http://alfie.ist.org/vim/syntax/wdiff.vim
7 " Comments are very welcome - but please make sure that you are commenting on
8 " the latest version of this file.
9 " SPAM is _NOT_ welcome - be ready to be reported!
12 " For version 5.x: Clear all syntax items
13 " For version 6.x: Quit when a syntax file was already loaded
14 if version < 600
15   syn clear
16 elseif exists("b:current_syntax")
17   finish
18 endif
21 syn region wdiffOld start=+\[-+ end=+-]+
22 syn region wdiffNew start="{+" end="+}"
25 " Define the default highlighting.
26 " For version 5.7 and earlier: only when not done already
27 " For version 5.8 and later: only when an item doesn't have highlighting yet
28 if version >= 508 || !exists("did_wdiff_syn_inits")
29   let did_wdiff_syn_inits = 1
30   if version < 508
31     let did_wdiff_syn_inits = 1
32     command -nargs=+ HiLink hi link <args>
33   else
34     command -nargs=+ HiLink hi def link <args>
35   endif
37   HiLink wdiffOld       Special
38   HiLink wdiffNew       Identifier
40   delcommand HiLink
41 endif
43 let b:current_syntax = "wdiff"