TabScript - v2.0.2
    Preparing search index...

    Function pattern

    • Creates a token matcher regex with a descriptive name for error messages. Automatically adds the sticky (/y) flag if not present.

      This is the recommended way to create regex patterns for use with s.read(), s.accept(), s.peek(), and related methods in plugins.

      Parameters

      • regexp: RegExp

        The regular expression pattern to match tokens

      • name: string

        A descriptive name shown in error messages (e.g., "identifier", "number")

      Returns RegExp

      A new RegExp with the sticky flag and custom toString()