[yaml mode] Fix exponential regexp
Closes https://github.com/codemirror/codemirror5/issues/7053
This commit is contained in:
parent
817ea7be47
commit
4ea5f46558
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue