 
   getInvertedPairedCharacters: ->
     return @invertedPairedCharacters if @invertedPairedCharacters
+
     @invertedPairedCharacters = {}
-    for open, close of @matchingCharacters
+    for open, close of @pairedCharacters
       @invertedPairedCharacters[close] = open
     @invertedPairedCharacters
 


module.exports =
class LanguageMode
  matchingCharacters:
    '(': ')'
    '[': ']'
    '{': '}'

      if @isCloseBracket(text) and text == nextCharachter
        @editSession.moveCursorRight()
        false
      else if pairedCharacter = @pairedCharacters[text]
        @editSession.insertText text + pairedCharacter
        @editSession.moveCursorLeft()
        false

