Constructors

Properties

findMatchingBracket: (this: EditSession, position: Point, chr?: string) => Point
getBracketRange: (this: EditSession, pos: Point) => Range
getMatchingBracketRanges: (
    this: EditSession,
    pos: Point,
    isBackwards?: boolean,
) => Range[]

Returns:

  • null if there is no any bracket at pos;
  • two Ranges if there is opening and closing brackets;
  • one Range if there is only one bracket
getMatchingTags: (
    this: EditSession,
    pos: Point,
) => {
    closeTag: Range;
    closeTagName: Range;
    openTag: Range;
    openTagName: Range;
}

Returns [[Range]]'s for matching tags and tag names, if there are any