cvs: pear /PHPDoc/parser PhpdocParserCore.php PhpdocParserTags.php

From: Date: Thu, 23 Aug 2001 16:47:52 +0000
Subject: cvs: pear /PHPDoc/parser PhpdocParserCore.php PhpdocParserTags.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-627@lists.php.net to get a copy of this message
chagenbu Thu Aug 23 12:47:52 2001 EDT Modified files: /pear/PHPDoc/parser PhpdocParserCore.php PhpdocParserTags.php Log: fix a bug if the break character was set to a character class (caused [] to be inserted into docs everywhere) Index: pear/PHPDoc/parser/PhpdocParserCore.php diff -u pear/PHPDoc/parser/PhpdocParserCore.php:1.1 pear/PHPDoc/parser/PhpdocParserCore.php:1.2 --- pear/PHPDoc/parser/PhpdocParserCore.php:1.1 Tue May 8 00:48:38 2001 +++ pear/PHPDoc/parser/PhpdocParserCore.php Thu Aug 23 12:47:52 2001 @@ -5,7 +5,7 @@ * Provides basic parser functions to extract doc comments, analyse tags and variable * declarations. * -* @version $Id: PhpdocParserCore.php,v 1.1 2001/05/08 04:48:38 sbergmann Exp $ +* @version $Id: PhpdocParserCore.php,v 1.2 2001/08/23 16:47:52 chagenbu Exp $ */ class PhpdocParserCore extends PhpdocParserTags { @@ -477,7 +477,11 @@ $sdesc = trim($lines[0]); unset($lines[0]); - $description = array ($sdesc, implode($this->PHP_BASE["break"], $lines)); + $break = $this->PHP_BASE['break']; + if ($break{0} == '[') { + $break = substr($string, 1, -1); + } + $description = array ($sdesc, implode($break, $lines)); } @@ -659,4 +663,4 @@ } // end func getVariableTypeAndValue } // end class PhpdocParserObject -?> \ No newline at end of file +?> Index: pear/PHPDoc/parser/PhpdocParserTags.php diff -u pear/PHPDoc/parser/PhpdocParserTags.php:1.1 pear/PHPDoc/parser/PhpdocParserTags.php:1.2 --- pear/PHPDoc/parser/PhpdocParserTags.php:1.1 Tue May 8 00:48:38 2001 +++ pear/PHPDoc/parser/PhpdocParserTags.php Thu Aug 23 12:47:52 2001 @@ -2,7 +2,7 @@ /** * Functions used to parse PHPDoc Tags. * -* @version $Id: PhpdocParserTags.php,v 1.1 2001/05/08 04:48:38 sbergmann Exp $ +* @version $Id: PhpdocParserTags.php,v 1.2 2001/08/23 16:47:52 chagenbu Exp $ */ class PhpdocParserTags extends PhpdocParserRegExp { @@ -617,7 +617,6 @@ * @see getTagPos() */ function getTags($phpdoc) { - $positions = $this->getTagPos($phpdoc); if (0 == count($positions)) @@ -733,4 +732,4 @@ } // end func checkParserErrors } // end class PhpdocParserTags -?> \ No newline at end of file +?>

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