       return fn.call(editor.languageMode, bufferRow, options) unless editor.getGrammar().scopeName == "source.js.jsx"
 
       scopeDescriptor = @editor.scopeDescriptorForBufferPosition([bufferRow, 0])
-      decreaseNextLineIndentRegex = @getRegexForProperty(scopeDescriptor, 'decreaseIndentForNextLinePattern')
+      decreaseNextLineIndentRegex = @getRegexForProperty(scopeDescriptor, 'react.decreaseIndentForNextLinePattern')
       decreaseIndentRegex = @decreaseIndentRegexForScopeDescriptor(scopeDescriptor)
       increaseIndentRegex = @increaseIndentRegexForScopeDescriptor(scopeDescriptor)
 

      return indent unless editor.getGrammar().scopeName == "source.js.jsx" and bufferRow > 1

      scopeDescriptor = @editor.scopeDescriptorForBufferPosition([bufferRow, 0])
      decreaseNextLineIndentRegex = @getRegexForProperty(scopeDescriptor, 'decreaseIndentForNextLinePattern')
      increaseIndentRegex = @increaseIndentRegexForScopeDescriptor(scopeDescriptor)
      tagStartRegex = @getRegexForProperty(scopeDescriptor, 'jsxTagStartPattern')
      complexAttributeRegex = @getRegexForProperty(scopeDescriptor, 'jsxComplexAttributePattern')

      precedingRow = @buffer.previousNonBlankRow(bufferRow)


    jsxComplexAttributePattern = '(?x)\\{ [^}"\']* $|\\( [^)"\']* $'
    decreaseIndentForNextLinePattern = '/>\\s*,?\\s*$'

    atom.config.set("react.jsxTagStartPattern", jsxTagStartPattern)
    atom.config.set("react.jsxComplexAttributePattern", jsxComplexAttributePattern)
    atom.config.set("react.decreaseIndentForNextLinePattern", decreaseIndentForNextLinePattern)

    # Patch edtiors language mode to get proper indention
    @patchEditorLangMode(editor) for editor in atom.workspace.getTextEditors()
