mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
Update CodeMirror to 5.13.5
This commit is contained in:
parent
edc3a31dfd
commit
8bf516263c
84 changed files with 2837 additions and 504 deletions
10
public/vendor/codemirror/mode/pegjs/pegjs.js
vendored
10
public/vendor/codemirror/mode/pegjs/pegjs.js
vendored
|
@ -24,7 +24,7 @@ CodeMirror.defineMode("pegjs", function (config) {
|
|||
inString: false,
|
||||
stringType: null,
|
||||
inComment: false,
|
||||
inChracterClass: false,
|
||||
inCharacterClass: false,
|
||||
braced: 0,
|
||||
lhs: true,
|
||||
localState: null
|
||||
|
@ -66,15 +66,15 @@ CodeMirror.defineMode("pegjs", function (config) {
|
|||
}
|
||||
}
|
||||
return "comment";
|
||||
} else if (state.inChracterClass) {
|
||||
while (state.inChracterClass && !stream.eol()) {
|
||||
} else if (state.inCharacterClass) {
|
||||
while (state.inCharacterClass && !stream.eol()) {
|
||||
if (!(stream.match(/^[^\]\\]+/) || stream.match(/^\\./))) {
|
||||
state.inChracterClass = false;
|
||||
state.inCharacterClass = false;
|
||||
}
|
||||
}
|
||||
} else if (stream.peek() === '[') {
|
||||
stream.next();
|
||||
state.inChracterClass = true;
|
||||
state.inCharacterClass = true;
|
||||
return 'bracket';
|
||||
} else if (stream.match(/^\/\//)) {
|
||||
stream.skipToEnd();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue