mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-05 01:04:25 -04:00
Upgrade CodeMirror to 5.10.1 and now support fullscreen, jump-to-line in editor
This commit is contained in:
parent
ce65e58096
commit
eaa8ccaccb
381 changed files with 6726 additions and 2636 deletions
0
public/vendor/codemirror/mode/jade/index.html
vendored
Executable file → Normal file
0
public/vendor/codemirror/mode/jade/index.html
vendored
Executable file → Normal file
6
public/vendor/codemirror/mode/jade/jade.js
vendored
Executable file → Normal file
6
public/vendor/codemirror/mode/jade/jade.js
vendored
Executable file → Normal file
|
@ -74,7 +74,7 @@ CodeMirror.defineMode('jade', function (config) {
|
|||
res.javaScriptArguments = this.javaScriptArguments;
|
||||
res.javaScriptArgumentsDepth = this.javaScriptArgumentsDepth;
|
||||
res.isInterpolating = this.isInterpolating;
|
||||
res.interpolationNesting = this.intpolationNesting;
|
||||
res.interpolationNesting = this.interpolationNesting;
|
||||
|
||||
res.jsState = CodeMirror.copyState(jsMode, this.jsState);
|
||||
|
||||
|
@ -167,7 +167,7 @@ CodeMirror.defineMode('jade', function (config) {
|
|||
if (state.interpolationNesting < 0) {
|
||||
stream.next();
|
||||
state.isInterpolating = false;
|
||||
return 'puncutation';
|
||||
return 'punctuation';
|
||||
}
|
||||
} else if (stream.peek() === '{') {
|
||||
state.interpolationNesting++;
|
||||
|
@ -583,7 +583,7 @@ CodeMirror.defineMode('jade', function (config) {
|
|||
copyState: copyState,
|
||||
token: nextToken
|
||||
};
|
||||
});
|
||||
}, 'javascript', 'css', 'htmlmixed');
|
||||
|
||||
CodeMirror.defineMIME('text/x-jade', 'jade');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue