Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Parse JsDoc Params #15

Open
Sevin777 opened this issue Dec 16, 2014 · 0 comments
Open

Fix Parse JsDoc Params #15

Sevin777 opened this issue Dec 16, 2014 · 0 comments
Assignees

Comments

@Sevin777
Copy link
Owner

 /**
  * @param {function} cb - callback to execute before setting value.
  *      Will only be executed if value is passed.
  *      1st param {object} v -  is new value.
  *      2nd param {fn->bool} [same] - callback that returns bool indicating if new value is same as current
  *      3rd param {object} [current] - the current value for this property
  *      Returns new value to use for setting value, or undefined to not set value.
  */
 function test(cb) {}

When more than one {type} string exists within a single parameter it messes up such that:

  • All types after the first are removed from the resulting documentation

Need to change parsing to not replace all, but only replace the first. (but make sure that all get highlighted)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant