Skip to content

Wrong parsing of param tags with line breaks #172

@tomek-he-him

Description

@tomek-he-him

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
  }
]}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions