wenchun / jsdoc-toolkit

Automatically exported from code.google.com/p/jsdoc-toolkit
0 stars 0 forks source link

Patch: Add support for expression closures #170

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
JavaScript 1.8 introduces a new way to define callback functions -
expression closures
(http://developer.mozilla.org/en/docs/New_in_JavaScript_1.8#Expression_closures)
.
JsDoc toolkit will fail badly on those, complaining about missing right
curly bracket and all kinds of bogus errors in following files. The patch
attached adds support for this feature (basically by ignoring function body
as its own scope unless it starts with a curly bracket).

Original issue reported on code.google.com by wladi...@palant.de on 8 Jul 2008 at 5:37

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by micmath on 21 Jun 2009 at 10:40

GoogleCodeExporter commented 8 years ago
An updated patch for this issue which still confuses the parser really badly in 
my
case: https://hg.adblockplus.org/jsdoc-toolkit/rev/55401633f28c

Original comment by wladi...@palant.de on 12 May 2010 at 11:26