Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PointBeforeOptions

Hierarchy

Index

Properties

Optional afterMatch

afterMatch: boolean

If true, get the point after the matching point. If false, get the matching point.

Optional distance

distance: number

Optional match

match: (value: { at: Location; beforePoint: BasePoint; beforeString: string }) => boolean

Lookup before the location until this predicate is true

Type declaration

    • (value: { at: Location; beforePoint: BasePoint; beforeString: string }): boolean
    • Parameters

      • value: { at: Location; beforePoint: BasePoint; beforeString: string }
        • at: Location
        • beforePoint: BasePoint
        • beforeString: string

      Returns boolean

Optional matchString

matchString: string | string[]

Lookup before the location for matchString.

Optional skipInvalid

skipInvalid: boolean

If true, lookup until the start of the editor value. If false, lookup until the first invalid character.

Optional unit

unit: "block" | "character" | "word" | "line" | "offset"

Generated using TypeDoc