From 3d2c6960a52753ed2c5f96e612a8c91b6af2b56f Mon Sep 17 00:00:00 2001 From: Michael Mathews Date: Sat, 27 Aug 2011 19:57:25 +0100 Subject: [PATCH] Fixed bug that sometimes caused @lends tags to be mangled by the parsers pretreater method. (hat tip to rotorz). --- rhino_modules/jsdoc/src/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhino_modules/jsdoc/src/parser.js b/rhino_modules/jsdoc/src/parser.js index ed5d7aea..c41765ff 100644 --- a/rhino_modules/jsdoc/src/parser.js +++ b/rhino_modules/jsdoc/src/parser.js @@ -121,7 +121,7 @@ // merge adjacent doclets .replace(/\*\/\/\*\*+/g, '@also') // make lent objectliterals documentable by giving them a dummy name - .replace(/(\/\*\*[\s\S]*@lends\b[\s\S]*\*\/\s*)\{/g, '$1____ = {'); + .replace(/(\/\*\*[\s\S]*?@lends\b[\s\S]*?\*\/\s*)\{/g, '$1____ = {'); } /**