cvs: pear /PHPDoc/parser PhpdocParserCore.php
| From: | Alexander Wirtz | Date: | Fri, 09 Aug 2002 16:24:22 +0000 |
| Subject: | cvs: pear /PHPDoc/parser PhpdocParserCore.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5654@lists.php.net to get a copy of this message | ||
eru Fri Aug 9 12:24:22 2002 EDT
Modified files:
/pear/PHPDoc/parser PhpdocParserCore.php
Log:
Remove doc_comment from code
Index: pear/PHPDoc/parser/PhpdocParserCore.php
diff -u pear/PHPDoc/parser/PhpdocParserCore.php:1.9 pear/PHPDoc/parser/PhpdocParserCore.php:1.10
--- pear/PHPDoc/parser/PhpdocParserCore.php:1.9 Fri Jul 26 10:49:39 2002
+++ pear/PHPDoc/parser/PhpdocParserCore.php Fri Aug 9 12:24:22 2002
@@ -5,7 +5,7 @@
* Provides basic parser functions to extract doc comments, analyse tags and variable
* declarations.
*
-* @version $Id: PhpdocParserCore.php,v 1.9 2002/07/26 14:49:39 derick Exp $
+* @version $Id: PhpdocParserCore.php,v 1.10 2002/08/09 16:24:22 eru Exp $
*/
class PhpdocParserCore extends PhpdocParserTags {
@@ -307,6 +307,7 @@
if (preg_match($rp2, $code = preg_replace ($rp, '\3', $phpcode), $regs) ) {
$doc_comment = $regs[2];
+ $code = preg_replace($rp2, '', $code);
// Do we have OO Code? If not, continue.
if ( !preg_match($this->PHP_COMPLEX['class'], $code) &&
!preg_match($this->PHP_COMPLEX['class_extends'], $code) ) {