     [open, close] = pair
     @pattern = ///(#{_.escapeRegExp(open)})|(#{_.escapeRegExp(close)})///g
 
-  getPairState: (editor, {match}) ->
+  getPairState: ({match}) ->
     switch
       when match[1] then 'open'
       when match[2] then 'close'

      "[^#{backslash}]?#{matchText}"
    ]
    pattern = new RegExp(patterns.join('|'))
    lineText = getLineTextToBufferPosition(editor, range.end)
    charCount = countChar(lineText, pattern)
    if charCount % 2 is 0
      'close'

  setPatternForPair: (pair) ->
    @pattern = ///(#{_.escapeRegExp(pair[0])})///g

  getPairState: ({matchText, range}) ->
    matchText = _.escapeRegExp(matchText)
    backslash = _.escapeRegExp('\\')
    patterns = [
