upgrade code mirror to 5.65.15 and fix modes requiring multiplex or overlay, fixes #4279

This commit is contained in:
zadam
2023-09-28 01:02:27 +02:00
parent 7e486fda06
commit 9767b6269a
15 changed files with 280 additions and 55 deletions

View File

@@ -85,7 +85,7 @@ CodeMirror.defineMode("yaml", function() {
}
/* pairs (associative arrays) -> key */
if (!state.pair && stream.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)) {
if (!state.pair && stream.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^\s,\[\]{}#&*!|>'"%@`])[^#:]*(?=:($|\s))/)) {
state.pair = true;
state.keyCol = stream.indentation();
return "atom";