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

Wrong parsing of param tags with line breaks #172

Open
tomek-he-him opened this issue Jun 25, 2015 · 0 comments
Open

Wrong parsing of param tags with line breaks #172

tomek-he-him opened this issue Jun 25, 2015 · 0 comments

Comments

@tomek-he-him
Copy link
Contributor

I’d expect the output of these things to be equivalent – just as jsDoc understands it.

/**
 * @param {String} [a='b']
 *   description
 */
/**
 * @param {String}
 *   [a='b']
 *   description
 */

But we get funny results (I’ve only left things that differ):

[{"tags": [
  {
    "type": "param",
    "string": "{String} [a='b']\n  description",
    "name": "[a='b']",
    "description": "  description",
    "optional": true
  }
]}]
[{"tags": [
  {
    "type": "param",
    "string": "{String}\n  [a='b']\n  description",
    "name": "  [a='b']\n  description",
    "description": "",
    "optional": false
  }
]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant