Skip to content

Commit b7b1bbc

Browse files
committed
[crystal mode] Fix an infinite loop in tokenizing of heredoc strings
Closes #7092
1 parent 0c8456c commit b7b1bbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/crystal/crystal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@
379379
return "string";
380380
}
381381

382-
escaped = embed && stream.next() == "\\";
382+
escaped = stream.next() == "\\" && embed;
383383
} else {
384384
stream.next();
385385
escaped = false;

0 commit comments

Comments
 (0)