Skip to content

Commit f53532d

Browse files
committed
the right way I suppose v19
1 parent b0e0d11 commit f53532d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tokenizer.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,9 +2032,11 @@ impl<'a> Tokenizer<'a> {
20322032
s.push(*next);
20332033
chars.next(); // consume next
20342034
} else if dialect_of!(self is SnowflakeDialect) {
2035-
s.push(r"\".chars().nth(0).unwrap());
2036-
s.push(*next);
20372035
chars.next();
2036+
if let Some(next) = chars.peek() {
2037+
s.push(*next);
2038+
chars.next();
2039+
}
20382040
} else {
20392041
let n = match next {
20402042
'0' => '\0',

0 commit comments

Comments
 (0)