" Vim syntax file
" Language:	Diff (context or unified)
" Maintainer:	Bram Moolenaar <mool@oce.nl>
" Last change:	1997 May 28


" Remove any old syntax stuff hanging around
syntax clear

syntax    match diffFile	"^diff.*$"
syntax    match diffFile	"^---.*$"
syntax    match diffFile	"^+++.*$"
syntax    match diffFile	"^\*\*\* .*$"

syntax    match diffRemoved	"^-.*$"
syntax    match diffAdded	"^+.*$"
syntax    match diffChanged	"^!.*$"

syntax    match diffLine	"^@.*$"
syntax    match diffLine	"^\<[0-9]\+\>.*$"
syntax    match diffLine	"^\*\*\*\*.*$"


if !exists("did_diff_syntax_inits")
  let did_diff_syntax_inits = 1
  highlight link diffFile	Type
  highlight link diffRemoved	Comment
  highlight link diffChanged	PreProc
  highlight link diffAdded	Identifier
  highlight link diffLine	Statement
endif
