cvs: pear /PHPDoc/parser PhpdocParserRegExp.php

From: Date: Wed, 28 Nov 2001 21:06:17 +0000
Subject: cvs: pear /PHPDoc/parser PhpdocParserRegExp.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1429@lists.php.net to get a copy of this message
mj Wed Nov 28 16:06:17 2001 EDT Modified files: /pear/PHPDoc/parser PhpdocParserRegExp.php Log: * Fix bug in regular expression for grepping define statements. Index: pear/PHPDoc/parser/PhpdocParserRegExp.php diff -u pear/PHPDoc/parser/PhpdocParserRegExp.php:1.2 pear/PHPDoc/parser/PhpdocParserRegExp.php:1.3 --- pear/PHPDoc/parser/PhpdocParserRegExp.php:1.2 Tue Aug 28 14:44:23 2001 +++ pear/PHPDoc/parser/PhpdocParserRegExp.php Wed Nov 28 16:06:17 2001 @@ -7,7 +7,7 @@ * possible I decided to define all regular expressions in one class. * From a programming point of view there's no need to do so. * -* @version $Id: PhpdocParserRegExp.php,v 1.2 2001/08/28 18:44:23 chagenbu Exp $ +* @version $Id: PhpdocParserRegExp.php,v 1.3 2001/11/28 21:06:17 mj Exp $ */ class PhpdocParserRegExp extends PhpdocObject { @@ -357,7 +357,7 @@ // RegExp used to grep define statements. // NOTE: the backticks do not allow the usage of $this->PHP_BASE // - $this->PHP_COMPLEX["const"] = sprintf("@^%sdefine%s\(%s(%s)%s,%s(%s)%s(?:,%s(%s))?%s\)%s;@is", + $this->PHP_COMPLEX["const"] = sprintf("@^[^>]%sdefine%s\(%s(%s)%s,%s(%s)%s(?:,%s(%s))?%s\)%s;@is", $this->PHP_BASE["space_optional"], $this->PHP_BASE["space_optional"], $this->PHP_BASE["space_optional"],

« previous php.pear.cvs (#1429) next »