7
|
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
|
|
6 "
|
|
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!
|
|
10
|
|
11
|
|
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
|
|
19
|
|
20
|
|
21 syn region wdiffOld start=+\[-+ end=+-]+
|
|
22 syn region wdiffNew start="{+" end="+}"
|
|
23
|
|
24
|
|
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
|
|
36
|
|
37 HiLink wdiffOld Special
|
|
38 HiLink wdiffNew Identifier
|
|
39
|
|
40 delcommand HiLink
|
|
41 endif
|
|
42
|
|
43 let b:current_syntax = "wdiff"
|