diff --git a/src/helma/doc/DocFunction.java b/src/helma/doc/DocFunction.java index cdf82db0..fb18c3e5 100644 --- a/src/helma/doc/DocFunction.java +++ b/src/helma/doc/DocFunction.java @@ -53,7 +53,6 @@ public class DocFunction extends DocFileElement { } - /** * reads a function file and creates DocFunction objects of type FUNCTION * connected to another DocElement. @@ -103,7 +102,9 @@ public class DocFunction extends DocFileElement { func.parseSource (location, beginLine, beginColumn, endLine, endColumn); vec.add (func); } - tok = mgr.getNextToken(); + if (tok.kind != EcmaScriptConstants.FUNCTION) { + tok = mgr.getNextToken(); + } } return (DocFunction[]) vec.toArray (new DocFunction[0]); }