Skip to content

Commit

Permalink
[crystal mode] Fix an infinite loop in tokenizing of heredoc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Apr 3, 2024
1 parent 0c8456c commit b7b1bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/crystal/crystal.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@
return "string";
}

escaped = embed && stream.next() == "\\";
escaped = stream.next() == "\\" && embed;
} else {
stream.next();
escaped = false;
Expand Down

0 comments on commit b7b1bbc

Please sign in to comment.