Function comment

  • Match from the start to the end, accept EOF by default.

    E.g.

    comment('//'); // single line comment
    comment('/*', '*' + '/'); // multiline comment

    Parameters

    • start: string | RegExp
    • end: string | RegExp = "\n"
    • Optional options: {
          acceptEof?: boolean;
      }
      • Optional acceptEof?: boolean

    Returns Action

Generated using TypeDoc