! NEdit Syntax Highlighting Patterns for diff output
!
! Supported: unified diff output (works best), context + normal diff output,
!            GNU diff --rcs output.
! Not supported: GNU diff --ed output.
! Problems: context highlighting has red and blue colouring reversed in the
! chunk headers.
!
! Load this file by starting nedit with:
!
!     nedit -import <the name of this file>
!
! The patterns can then be saved permanently into nedit's own resource file
! by using Save Defaults from the Preferences menu.
!
! Download:
!    http://volker.dnsalias.net/soft/nedit/
!    and perhaps:
!    ftp://ftp.nedit.org/pub/NEdit/contrib/highlighting/
!
! Copyright (C) 2004-2006 by Volker Kuhlmann <VolkerKuhlmann@gmx.de>
!   and Andy Piper <andy.piper@freeuk.com>
! Released under the same license as NEdit itself.
!
! ChangeLog:
!   2.1, 30 Jun 2006: Volker Kuhlmann, NEdit 5.5
!	- Improved for normal and context diffs. Tested with NEdit 5.5.
!	- (corrected ftp URL 10Sep06)
!   2.0, 11 Jan 2004: Volker Kuhlmann <VolkerKuhlmann@gmx.de>
!	- Minor changes. Tested with NEdit 5.4.

nedit.languageModes: \
	Diff:.diff .patch:"^(---\\s.*$|\\+\\+\\+\\s.*$|\\*\\*\\*\\s.*$)"::::::

nedit.highlightPatterns: \
	Diff:1:0{\n\
		README:"Diff output highlighting patterns, version 2.1. Modified by Volker Kuhlmann.":::Warning::\n\
		File1:"^---\\s.*$":::Flag::\n\
		File2:"^(\\+\\+\\+\\s|\\*\\*\\*\\s|\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*).*$":::DiffFile2::\n\
		HunkLines:"^(@@\\s|\\.).*(@@$|$)":::DiffHunk::D\n\
		LinesOut:"^(-|\\< |d[0-9]*\\s[0-9]).*$":::Text Removed::D\n\
		LinesIn:"^(\\+|\\> |a[0-9]*\\s[0-9]).*$":::Preprocessor1::D\n\
		LinesChanged:"^(! |c[0-9]).*$":::Text Changed::D\n\
	}

nedit.styles: \
	DiffFile2:blue:Bold\n\
	DiffHunk:purple:Bold\n\
	Text Removed:red:Plain\n\
	Text Changed:VioletRed:Plain
