X-Git-Url: http://git.roojs.org/?p=PHP_CodeDoc;a=blobdiff_plain;f=CodeDoc%2FParser.php;h=1a01a1c72313a81cc6c71e4d322ac4c36251d198;hp=fd2163031c8227129da751354a7c89eac7a15552;hb=568020158f352f6f7a515b8aae345ab9cc4e258d;hpb=1f555374bc8fc22b702bda4152e2fb63224f07de diff --git a/CodeDoc/Parser.php b/CodeDoc/Parser.php index fd21630..1a01a1c 100644 --- a/CodeDoc/Parser.php +++ b/CodeDoc/Parser.php @@ -386,7 +386,7 @@ class PHP_CodeDoc_Parser { * @returns false|STRING|constant */ - function look_nws($num, $stop) + function look_nws($num, $stop= '') { $dir = $num > 0 ? 1 : -1; if (!$num) { @@ -403,6 +403,9 @@ class PHP_CodeDoc_Parser { $p += $dir; continue; } + if ($stop != '' && $t == $stop) { + return false; + } $c++; $p += $dir; if ($c >= abs($num)) {