fixed parser bug introduced in recent commit

This commit is contained in:
2026-03-03 22:34:17 -05:00
parent ed4e3b547b
commit 1795995b98

View File

@@ -846,7 +846,7 @@ impl Iterator for LexStream {
while let Some(ch) = get_char(&self.source, self.cursor) { while let Some(ch) = get_char(&self.source, self.cursor) {
match ch { match ch {
'\\' => { '\\' if get_char(&self.source, self.cursor + 1) == Some('\n') => {
self.cursor = (self.cursor + 2).min(self.source.len()); self.cursor = (self.cursor + 2).min(self.source.len());
} }
_ if is_hard_sep(ch) => { _ if is_hard_sep(ch) => {