patch for the file `diff.syntax'



Hi,

the current diff.syntax definition does not recognize diffs of diffs
correctly. The patch fixes that.

Example:

--- patches/patch-ab	1999/06/27 01:41:46	1.1
+++ patches/patch-ab	2004/02/07 16:02:06
@@ -1,7 +1,16 @@
-$NetBSD: patch-ab,v 1.1 1999/06/27 01:41:46 abs Exp $
+$NetBSD$
 
---- crashme.c.orig	Sat Jun 26 18:35:17 1999
-+++ crashme.c	Sat Jun 26 18:36:01 1999
+--- crashme.c.orig	2004-02-07 16:32:33.000000000 +0100
++++ crashme.c	2004-02-07 16:54:49.000000000 +0100
+@@ -260,7 +260,7 @@
+ #else
+  struct sigaction act;
+  act.sa_handler = func;
+- act.sa_mask = 0;
++ sigemptyset(&act.sa_mask);
+ #ifdef linux
+  act.sa_restorer = 0;
+ #endif /* linux */
 @@ -591,7 +591,7 @@
      status = fork();
  #endif


Roland
--- diff.syntax	2004-01-15 17:30:34.000000000 +0100
+++ diff.syntax	2004-02-07 17:05:50.000000000 +0100
@@ -10,8 +10,8 @@
 context exclusive linestart @@*@@ \n brightcyan
 context exclusive linestart Index:\s \n black white
 context linestart diff \n white red
-context linestart --- \n brightmagenta
-context linestart \+\+\+ \n brightmagenta
+context linestart ---\s \n brightmagenta
+context linestart \+\+\+\s \n brightmagenta
 context linestart \*\*\* \n brightmagenta
 context linestart === \n brown
 context linestart \+ \n brightgreen


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]