code: function captureTomDoc(comments) {
    // collect lines up to first paragraph break
    const lines = []
    for (let i = 0; i < comments.length; i++) {
      const comment = comments[i]
      if (comment.value.match(/^\s*$/)) break
      lines.push(comment.value.trim())
    }
  
    // return doctrine-like object
    const statusMatch = lines.join(' ').match(/^(Public|Internal|Deprecated):\s*(.+)/)
    if (statusMatch) {
      return {
        description: statusMatch[2],
        tags: [{
          title: statusMatch[1].toLowerCase(),
          description: statusMatch[2],
        }],
      }
    }
  }
docs: parse TomDoc section from comments