summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/mode/jsx/jsx.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/vendor/codemirror/mode/jsx/jsx.js')
-rw-r--r--public/vendor/codemirror/mode/jsx/jsx.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/vendor/codemirror/mode/jsx/jsx.js b/public/vendor/codemirror/mode/jsx/jsx.js
index bc2ea797..aff01b8d 100644
--- a/public/vendor/codemirror/mode/jsx/jsx.js
+++ b/public/vendor/codemirror/mode/jsx/jsx.js
@@ -25,9 +25,9 @@
context.prev && copyContext(context.prev))
}
- CodeMirror.defineMode("jsx", function(config) {
+ CodeMirror.defineMode("jsx", function(config, modeConfig) {
var xmlMode = CodeMirror.getMode(config, {name: "xml", allowMissing: true, multilineTagIndentPastTag: false})
- var jsMode = CodeMirror.getMode(config, "javascript")
+ var jsMode = CodeMirror.getMode(config, modeConfig && modeConfig.base || "javascript")
function flatXMLIndent(state) {
var tagName = state.tagName
@@ -144,4 +144,4 @@
}, "xml", "javascript")
CodeMirror.defineMIME("text/jsx", "jsx")
-})
+});