Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ILineTerminatorsTester

A subset of the regExp interface. Needed to compute line/column info by a chevrotain lexer.

Hierarchy

  • ILineTerminatorsTester

Index

Properties

Methods

Properties

lastIndex

lastIndex: number

Just like the regExp lastIndex with the global flag enabled It should be updated after every match to point to the offset where the next match attempt starts.

Methods

test

  • test(text: string): boolean
  • Just like regExp.test

    Parameters

    • text: string

    Returns boolean

Generated using TypeDoc