Fixed bug that sometimes caused @lends tags to be mangled by the parsers pretreater method. (hat tip to rotorz).

This commit is contained in:
Michael Mathews 2011-08-27 19:57:25 +01:00
parent 9f742529f6
commit 3d2c6960a5

View File

@ -121,7 +121,7 @@
// merge adjacent doclets // merge adjacent doclets
.replace(/\*\/\/\*\*+/g, '@also') .replace(/\*\/\/\*\*+/g, '@also')
// make lent objectliterals documentable by giving them a dummy name // 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____ = {');
} }
/** /**