blob: bdc7be713126a6bc4349f50fc95fe06a7771de1c [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" 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
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020012" quit when a syntax file was already loaded
13if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000014 finish
15endif
16
17
18syn region wdiffOld start=+\[-+ end=+-]+
19syn region wdiffNew start="{+" end="+}"
20
21
22" Define the default highlighting.
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020023" Only when an item doesn't have highlighting yet
24command -nargs=+ HiLink hi def link <args>
Bram Moolenaar071d4272004-06-13 20:20:40 +000025
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020026HiLink wdiffOld Special
27HiLink wdiffNew Identifier
Bram Moolenaar071d4272004-06-13 20:20:40 +000028
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020029delcommand HiLink
Bram Moolenaar071d4272004-06-13 20:20:40 +000030
31let b:current_syntax = "wdiff"