         @editor.backspace()
 
   findMatchingEndPair: (startPairPosition, startPair, endPair) ->
-    scanRange = new Range(startPairPosition.translate([0, 1]), @editor.buffer.getEndPosition())
+    scanRange = new Range(startPairPosition.add([0, 1]), @editor.buffer.getEndPosition())
     endPairPosition = null
     unpairedCount = 0
     @editor.scanInBufferRange pairRegexes[startPair], scanRange, ({match, range, stop}) ->


      if @tagHighlighted
        startPosition = startRange.end
        endPosition = endRange.start.translate([0, -2]) # Don't select </
      else
        startPosition = startRange.start
        endPosition = endRange.start

    position = @editor.getCursorBufferPosition()
    currentPair = @editor.getTextInRange(Range.fromPointWithDelta(position, 0, 1))
    unless matches[currentPair]
      position = position.add([0, -1])
      currentPair = @editor.getTextInRange(Range.fromPointWithDelta(position, 0, 1))
    if matchingPair = matches[currentPair]
      {position, currentPair, matchingPair}
