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


      scopeDescriptor = @editor.scopeDescriptorForBufferPosition([bufferRow, 0])

      decreaseNextLineIndentRegex = @cacheRegex(decreaseIndentForNextLinePattern)
      increaseIndentRegex = @increaseIndentRegexForScopeDescriptor(scopeDescriptor)

      decreaseIndentRegex = @decreaseIndentRegexForScopeDescriptor(scopeDescriptor)
      tagStartRegex = @cacheRegex(jsxTagStartPattern)
      complexAttributeRegex = @cacheRegex(jsxComplexAttributePattern)

      precedingRow = @buffer.previousNonBlankRow(bufferRow)


jsxComplexAttributePattern = '(?x)\\{ [^}"\']* $|\\( [^)"\']* $'
decreaseIndentForNextLinePattern = '(?x)
/>\\s*(,|;)?\\s*$
| ^(?!\\s*\\?)\\s*\\S+.*</[-_\\.A-Za-z0-9]+>$'

class AtomReact
  config:
