From 1d39d70cc9528fc462806a621200537b6649bd63 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Tue, 9 Jan 2001 16:31:24 +0000 Subject: Upgrade to 0.5 PR: 24184 Submitted by: MAINTAINER --- textproc/py-martel/files/patch-Generate.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'textproc/py-martel/files/patch-Generate.py') diff --git a/textproc/py-martel/files/patch-Generate.py b/textproc/py-martel/files/patch-Generate.py index caafeaaebc6b..045356cec66e 100644 --- a/textproc/py-martel/files/patch-Generate.py +++ b/textproc/py-martel/files/patch-Generate.py @@ -1,3 +1,32 @@ +From: "Andrew Dalke" +To: +Date: Wed, 6 Dec 2000 01:12:29 -0700 + +There's a bug in Martel-0.4 and earlier versions. + +Suppose you have ([<>][ABC])+[<>]? +and want to match it against + + ][ABC]. The "][ABC]. The parser tries to match the final +"<" against [<>][ABC] and should fail then try to match +the "<" against [<>]? . + +The bug was that it would match the "<" against the [<>] in +[<>][ABC] and fail at that point. It gives an assertion error +about "l" being greater than "r". + +Here's the patch. The only consequence should be a small hit +in performance. + + Andrew + +[ Note from port maintainer: + This patch was somehow not incorporated into Martel 0.5 ] + + --- Generate.py.orig Wed Nov 22 09:26:48 2000 +++ Generate.py Thu Dec 7 12:27:09 2000 @@ -268,11 +268,11 @@ -- cgit v1.2.3