Open loopmode opened 7 years ago
Important:
The error only happens using esdoc@1.0.3
- it does not happen using @1.0.2
or @1.01
I have traced this error to: https://github.com/esdoc/esdoc-plugins/blob/master/esdoc-publish-html-plugin/src/Builder/DocBuilder.js
It's one of the Regular Expressions parsing the decorators. Here is a link at which Match 1 and 3 are as intended. Match 2 shows why the error exists. http://rubular.com/r/6UdWsNAQS1
Who solves the RegEx, solves the bug. I'd prefer decorates would allow Simple Types, JSON Types and even functions in classic or Arrow (ES6) way.
An additional problem I found with regards to parsing Decorators originates from the core of ESDOC. See issue: https://github.com/esdoc/esdoc/issues/471
Using
When using a class decorator with an object as argument, I run into this error:
The stack trace is from this source code:
In general: