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

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.

test

test: function

Just like regExp.test

Type declaration

    • (text: string): boolean
    • Parameters

      • text: string

      Returns boolean

Generated using TypeDoc