CodeDoc/Parser.php
[PHP_CodeDoc] / CodeDoc / Parser.php
index fd21630..895da42 100644 (file)
@@ -386,7 +386,7 @@ class PHP_CodeDoc_Parser {
      * @returns  false|STRING|constant
      */
     
-    function look_nws($num, $stop)
+    function look_nws($num)
     {
         $dir = $num > 0 ? 1 : -1;
         if (!$num) {
@@ -403,6 +403,9 @@ class PHP_CodeDoc_Parser {
                 $p += $dir;
                 continue;
             }
+            if (is_string($t)) { // stop on puncutation...
+                return false;
+            }
             $c++;
             $p += $dir;
             if ($c >= abs($num)) {