     @editor.getTextInBufferRange(range) is escapeChar
 
   # options.enclosed is only used when which is 'close'
-  findPair: (pair, options) ->
-    {from, which, allowNextLine, enclosed} = options
+  findPair: (which, from, pattern) ->
     switch which
       when 'open'
         scanFunc = 'backwardsScanInBufferRange'

    if (not selection.isEmpty() and not selection.isReversed())
      from = from.translate([0, -1])

    pairInfo = @getPairInfo(from, @pair, enclosed)
    # When range was same, try to expand range
    if pairInfo?.targetRange.isEqual(originalRange)
      from = pairInfo.aRange.end.translate([0, +1])
      pairInfo = @getPairInfo(from, @pair, enclosed)
    pairInfo?.targetRange

  selectTextObject: (selection) ->
    swrap(selection).setBufferRangeSafely @getRange(selection, {@enclosed})

# -------------------------
class AnyPair extends Pair

class InnerBackTick extends BackTick
  @extend()

# Pair expands multi-lines
# -------------------------
class CurlyBracket extends Pair
  @extend(false)
