|
@@ -895,7 +895,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
|
|
|
indent: function(state, textAfter) {
|
|
|
if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return CodeMirror.Pass;
|
|
|
if (state.tokenize != tokenBase) return 0;
|
|
|
- var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top
|
|
|
+ var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top;
|
|
|
// Kludge to prevent 'maybelse' from blocking lexical scope pops
|
|
|
if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
|
|
|
var c = state.cc[i];
|
|
@@ -951,7 +951,7 @@ CodeMirror.defineMIME("application/x-javascript", "javascript");
|
|
|
CodeMirror.defineMIME("application/ecmascript", "javascript");
|
|
|
CodeMirror.defineMIME("application/json", { name: "javascript", json: true });
|
|
|
CodeMirror.defineMIME("application/x-json", { name: "javascript", json: true });
|
|
|
-CodeMirror.defineMIME("application/manifest+json", { name: "javascript", json: true })
|
|
|
+CodeMirror.defineMIME("application/manifest+json", { name: "javascript", json: true });
|
|
|
CodeMirror.defineMIME("application/ld+json", { name: "javascript", jsonld: true });
|
|
|
CodeMirror.defineMIME("text/typescript", { name: "javascript", typescript: true });
|
|
|
CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript: true });
|