[crystal mode] Fix an infinite loop in tokenizing of heredoc strings
Closes https://github.com/codemirror/codemirror5/issues/7092
This commit is contained in:
parent
0c8456c3bc
commit
b7b1bbcb96
|
@ -379,7 +379,7 @@
|
|||
return "string";
|
||||
}
|
||||
|
||||
escaped = embed && stream.next() == "\\";
|
||||
escaped = stream.next() == "\\" && embed;
|
||||
} else {
|
||||
stream.next();
|
||||
escaped = false;
|
||||
|
|
Loading…
Reference in New Issue