       cursorBufferPosition = editSession.getCursorBufferPosition()
       previousCharacter = editSession.getTextInBufferRange([cursorBufferPosition.add([0, -1]), cursorBufferPosition])
       nextCharacter = editSession.getTextInBufferRange([cursorBufferPosition, cursorBufferPosition.add([0,1])])
-      if @startPairMatches[previousCharacter] is nextCharacter
+      if @pairedCharacters[previousCharacter] is nextCharacter
         editSession.transact =>
           editSession.moveCursorLeft()
           editSession.delete()


module.exports =
class BracketMatcher extends AtomPackage
  startPairMatches:
    '(': ')'
    '[': ']'
    '{': '}'
    '"': '"'
    "'": "'"

  endPairMatches:
    ')': '('
    ']': '['
    '}': '{'
    '"': '"'
    "'": "'"

  pairHighlighted: false


        false

  wrapSelectionInBrackets: (editSession, bracket) ->
    pair = @pairedCharacters[bracket]
    editSession.mutateSelectedText (selection) =>
      return if selection.isEmpty()

