mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-06 09:31:35 -04:00
Update CodeMirror to version 5.15.3
This commit is contained in:
parent
16d5e3ea80
commit
fb70833bc5
41 changed files with 834 additions and 310 deletions
8
public/vendor/codemirror/mode/slim/slim.js
vendored
8
public/vendor/codemirror/mode/slim/slim.js
vendored
|
@ -165,7 +165,7 @@
|
|||
};
|
||||
return function(stream, state) {
|
||||
rubyState = state.rubyState;
|
||||
state.rubyState = rubyMode.startState();
|
||||
state.rubyState = CodeMirror.startState(rubyMode);
|
||||
state.tokenize = runSplat;
|
||||
return ruby(stream, state);
|
||||
};
|
||||
|
@ -317,7 +317,7 @@
|
|||
|
||||
function startSubMode(mode, state) {
|
||||
var subMode = getMode(mode);
|
||||
var subState = subMode.startState && subMode.startState();
|
||||
var subState = CodeMirror.startState(subMode);
|
||||
|
||||
state.subMode = subMode;
|
||||
state.subState = subState;
|
||||
|
@ -507,8 +507,8 @@
|
|||
var mode = {
|
||||
// default to html mode
|
||||
startState: function() {
|
||||
var htmlState = htmlMode.startState();
|
||||
var rubyState = rubyMode.startState();
|
||||
var htmlState = CodeMirror.startState(htmlMode);
|
||||
var rubyState = CodeMirror.startState(rubyMode);
|
||||
return {
|
||||
htmlState: htmlState,
|
||||
rubyState: rubyState,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue