fixed parser bug introduced in recent commit

This commit is contained in:
2026-03-03 22:34:17 -05:00
parent 81135c9ad2
commit d67b7c2aad

View File

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