interface BracketMatch {
    findMatchingBracket: ((position, chr?) => Ace.Point);
    getBracketRange: ((pos) => Range);
    getMatchingBracketRanges: ((pos, isBackwards?) => Range[]);
    getMatchingTags: ((pos) => {
        closeTag: Range;
        closeTagName: Range;
        openTag: Range;
        openTagName: Range;
    });
}

Properties

findMatchingBracket: ((position, chr?) => Ace.Point)

Type declaration

getBracketRange: ((pos) => Range)

Type declaration

getMatchingBracketRanges: ((pos, isBackwards?) => 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

Type declaration

    • (pos, isBackwards?): 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

      Parameters

      • pos: Ace.Point
      • Optional isBackwards: boolean

      Returns Range[]

getMatchingTags: ((pos) => {
    closeTag: Range;
    closeTagName: Range;
    openTag: Range;
    openTagName: Range;
})

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

Type declaration

    • (pos): {
          closeTag: Range;
          closeTagName: Range;
          openTag: Range;
          openTagName: Range;
      }
    • Returns [[Range]]'s for matching tags and tag names, if there are any

      Parameters

      Returns {
          closeTag: Range;
          closeTagName: Range;
          openTag: Range;
          openTagName: Range;
      }

Generated using TypeDoc