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
16 elseif exists("b:current_syntax")
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
31 let did_wdiff_syn_inits = 1
32 command -nargs=+ HiLink hi link <args>
34 command -nargs=+ HiLink hi def link <args>
37 HiLink wdiffOld Special
38 HiLink wdiffNew Identifier
43 let b:current_syntax = "wdiff"