Hierarchy (View Summary)

Constructors

Properties

$brackets: {
    "(": string;
    ")": string;
    "[": string;
    "]": string;
    "{": string;
    "}": string;
    "<": string;
    ">": string;
}
$findClosingBracket: (
    bracket: string,
    position: Point,
    typeRe?: RegExp,
) => Point
$findClosingTag: (
    iterator: any,
    token: any,
) => {
    closeTag: Range;
    closeTagName: Range;
    openTag: Range;
    openTagName: Range;
}
$findOpeningBracket: (
    bracket: string,
    position: Point,
    typeRe?: RegExp,
) => Point
$findOpeningTag: (
    iterator: any,
    token: any,
) => {
    closeTag: Range;
    closeTagName: Range;
    openTag: Range;
    openTagName: Range;
}
$findTagName: (iterator: any) => any
findMatchingBracket: (position: Point, chr?: string) => Point
getBracketRange: (pos: Point) => Range
getMatchingBracketRanges: (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: (
    pos: Point,
) => {
    closeTag: Range;
    closeTagName: Range;
    openTag: Range;
    openTagName: Range;
}

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