Closed hegemonic closed 10 years ago
Originally reported as jsdoc3/jsdoc#619:
It looks like the parser is being a bit greedy with the undefined literal. I'm getting an error parsing the following comment. /** * @typedef {{className: (string|undefined), * coordinateFormat: (ol.CoordinateFormatType|undefined), * projection: ol.proj.ProjectionLike, * target: (Element|undefined), * undefinedHTML: (string|undefined)}} */ Here's the error message: Invalid type expression "{className: (string|undefined), coordinateFormat: (ol.CoordinateFormatType|undefined), projection: ol.proj.ProjectionLike, target: (Element|undefined), undefinedHTML: (string|undefined)}": Expected "!", ",", ":", "=", "?", "|" or "}" but "H" found. I'm having trouble debugging this. It may be an issue with Catharsis or PEG.js. Thanks for any insight.
It looks like the parser is being a bit greedy with the undefined literal. I'm getting an error parsing the following comment.
undefined
/** * @typedef {{className: (string|undefined), * coordinateFormat: (ol.CoordinateFormatType|undefined), * projection: ol.proj.ProjectionLike, * target: (Element|undefined), * undefinedHTML: (string|undefined)}} */
Here's the error message:
Invalid type expression "{className: (string|undefined), coordinateFormat: (ol.CoordinateFormatType|undefined), projection: ol.proj.ProjectionLike, target: (Element|undefined), undefinedHTML: (string|undefined)}": Expected "!", ",", ":", "=", "?", "|" or "}" but "H" found.
I'm having trouble debugging this. It may be an issue with Catharsis or PEG.js. Thanks for any insight.
This only occurs when JSDoc support is enabled.
Fixed in 0.7.1.
Originally reported as jsdoc3/jsdoc#619: