Interface ILineTerminatorsTester

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

Hierarchy

  • ILineTerminatorsTester

Properties

Properties

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.

test: ((text: string) => boolean)

Type declaration

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

      Parameters

      • text: string

      Returns boolean

Generated using TypeDoc