mirror of
https://github.com/documize/community.git
synced 2025-08-04 04:55:23 +02:00
Update CodeMirror dep to v5.42.2
Affects Code and Markdown section types
This commit is contained in:
parent
c706edec47
commit
479a61a3ef
347 changed files with 21845 additions and 20770 deletions
9
gui/public/codemirror/mode/stex/stex.js
vendored
9
gui/public/codemirror/mode/stex/stex.js
vendored
|
@ -1,5 +1,5 @@
|
|||
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
||||
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
||||
// Distributed under an MIT license: https://codemirror.net/LICENSE
|
||||
|
||||
/*
|
||||
* Author: Constantin Jucovschi (c.jucovschi@jacobs-university.de)
|
||||
|
@ -16,7 +16,7 @@
|
|||
})(function(CodeMirror) {
|
||||
"use strict";
|
||||
|
||||
CodeMirror.defineMode("stex", function() {
|
||||
CodeMirror.defineMode("stex", function(_config, parserConfig) {
|
||||
"use strict";
|
||||
|
||||
function pushCommand(state, command) {
|
||||
|
@ -173,7 +173,7 @@
|
|||
if (source.eatSpace()) {
|
||||
return null;
|
||||
}
|
||||
if (source.match(endModeSeq)) {
|
||||
if (endModeSeq && source.match(endModeSeq)) {
|
||||
setState(state, normal);
|
||||
return "keyword";
|
||||
}
|
||||
|
@ -235,9 +235,10 @@
|
|||
|
||||
return {
|
||||
startState: function() {
|
||||
var f = parserConfig.inMathMode ? function(source, state){ return inMathMode(source, state); } : normal;
|
||||
return {
|
||||
cmdState: [],
|
||||
f: normal
|
||||
f: f
|
||||
};
|
||||
},
|
||||
copyState: function(s) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue