Update CodeMirror to 5.13.5
This commit is contained in:
6
public/vendor/codemirror/mode/jsx/jsx.js
vendored
6
public/vendor/codemirror/mode/jsx/jsx.js
vendored
@@ -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")
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user