Properties
Optional afterMatch
afterMatch: boolean
Optional distance
distance: number
Optional match
match: (value: { at: Location; beforePoint: BasePoint; beforeString: string }) => boolean
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[]
Optional skipInvalid
skipInvalid: boolean
Optional unit
unit: "block" | "character" | "word" | "line" | "offset"
If true, get the point after the matching point. If false, get the matching point.