Upgrade CodeMirror to 5.10.1 and now support fullscreen, jump-to-line in editor
This commit is contained in:
0
public/vendor/codemirror/addon/mode/loadmode.js
vendored
Executable file → Normal file
0
public/vendor/codemirror/addon/mode/loadmode.js
vendored
Executable file → Normal file
6
public/vendor/codemirror/addon/mode/multiplex.js
vendored
Executable file → Normal file
6
public/vendor/codemirror/addon/mode/multiplex.js
vendored
Executable file → Normal file
@@ -51,7 +51,7 @@ CodeMirror.multiplexingMode = function(outer /*, others */) {
|
||||
if (!other.parseDelimiters) stream.match(other.open);
|
||||
state.innerActive = other;
|
||||
state.inner = CodeMirror.startState(other.mode, outer.indent ? outer.indent(state.outer, "") : 0);
|
||||
return other.delimStyle;
|
||||
return other.delimStyle && (other.delimStyle + " " + other.delimStyle + "-open");
|
||||
} else if (found != -1 && found < cutOff) {
|
||||
cutOff = found;
|
||||
}
|
||||
@@ -70,7 +70,7 @@ CodeMirror.multiplexingMode = function(outer /*, others */) {
|
||||
if (found == stream.pos && !curInner.parseDelimiters) {
|
||||
stream.match(curInner.close);
|
||||
state.innerActive = state.inner = null;
|
||||
return curInner.delimStyle;
|
||||
return curInner.delimStyle && (curInner.delimStyle + " " + curInner.delimStyle + "-close");
|
||||
}
|
||||
if (found > -1) stream.string = oldContent.slice(0, found);
|
||||
var innerToken = curInner.mode.token(stream, state.inner);
|
||||
@@ -80,7 +80,7 @@ CodeMirror.multiplexingMode = function(outer /*, others */) {
|
||||
state.innerActive = state.inner = null;
|
||||
|
||||
if (curInner.innerStyle) {
|
||||
if (innerToken) innerToken = innerToken + ' ' + curInner.innerStyle;
|
||||
if (innerToken) innerToken = innerToken + " " + curInner.innerStyle;
|
||||
else innerToken = curInner.innerStyle;
|
||||
}
|
||||
|
||||
|
||||
2
public/vendor/codemirror/addon/mode/multiplex_test.js
vendored
Executable file → Normal file
2
public/vendor/codemirror/addon/mode/multiplex_test.js
vendored
Executable file → Normal file
@@ -29,5 +29,5 @@
|
||||
|
||||
MT(
|
||||
"stexInsideMarkdown",
|
||||
"[strong **Equation:**] [delim $][inner&tag \\pi][delim $]");
|
||||
"[strong **Equation:**] [delim&delim-open $][inner&tag \\pi][delim&delim-close $]");
|
||||
})();
|
||||
|
||||
0
public/vendor/codemirror/addon/mode/overlay.js
vendored
Executable file → Normal file
0
public/vendor/codemirror/addon/mode/overlay.js
vendored
Executable file → Normal file
2
public/vendor/codemirror/addon/mode/simple.js
vendored
Executable file → Normal file
2
public/vendor/codemirror/addon/mode/simple.js
vendored
Executable file → Normal file
@@ -60,7 +60,7 @@
|
||||
|
||||
function ensureState(states, name) {
|
||||
if (!states.hasOwnProperty(name))
|
||||
throw new Error("Undefined state " + name + "in simple mode");
|
||||
throw new Error("Undefined state " + name + " in simple mode");
|
||||
}
|
||||
|
||||
function toRegex(val, caret) {
|
||||
|
||||
Reference in New Issue
Block a user