1.0.1 • Published 9 years ago

jsdoc-inline-lex v1.0.1

Weekly downloads
107
License
ISC
Repository
github
Last release
9 years ago

lex

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

namedescription
textinput 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.