Skip to content
This repository was archived by the owner on Dec 4, 2018. It is now read-only.

Support nested brackets in default values #133

Closed
tmcw opened this issue Oct 28, 2015 · 0 comments · May be fixed by electrode-io/electrode-docgen#7 or yashwanth-t/node#2
Closed

Support nested brackets in default values #133

tmcw opened this issue Oct 28, 2015 · 0 comments · May be fixed by electrode-io/electrode-docgen#7 or yashwanth-t/node#2

Comments

@tmcw
Copy link
Contributor

tmcw commented Oct 28, 2015

Intent is to support the following code:

/**
 * @param {Array} [foo=[1]] this is a param
 */

Currently the default parsing ends at the first ] regardless if other opening [s are encountered. JSDoc handles this syntax properly, and usejsdoc doesn't mention it but also doesn't forbid it in its discussion of default values.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants