jsdoc-inline-lex
lex inline tags from jsdoc text
Last updated 6 years ago by tmcw .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jsdoc-inline-lex 
SYNC missed versions from official npm registry.

lex

Lex tokens out of a string input that represents some JSDoc-embedded text.

name description
text input text.

Examples

var result = lex('See {@link MyClass}.');
// returns
result = [
  {
    "type": "text",
    "capture": [
      " See "
    ]
  },
  {
    "type": "link",
    "capture": [
      "{@link MyClass}",
      "MyClass"
    ]
  },
  {
    "type": "text",
    "capture": [
      ".\n"
    ]
  }
];

Returns array of lexed tokens.

Current Tags

  • 1.0.1                                ...           latest (6 years ago)

2 Versions

  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 9
Dependencies (0)
None
Dev Dependencies (1)

Copyright 2014 - 2017 © taobao.org |