[crystal mode] Fix an infinite loop in tokenizing of heredoc strings

Closes https://github.com/codemirror/codemirror5/issues/7092
This commit is contained in:
Marijn Haverbeke 2024-04-03 14:56:27 +02:00
parent 0c8456c3bc
commit b7b1bbcb96
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@
return "string";
}
escaped = embed && stream.next() == "\\";
escaped = stream.next() == "\\" && embed;
} else {
stream.next();
escaped = false;