Skip to content

Commit 4dea381

Browse files
committed
the right way I suppose v16
1 parent 05676ce commit 4dea381

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

src/tokenizer.rs

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,22 +2031,21 @@ impl<'a> Tokenizer<'a> {
20312031
s.push(ch);
20322032
s.push(*next);
20332033
chars.next(); // consume next
2034-
}
2035-
else {
2036-
let n = if dialect_of!(self is SnowflakeDialect) {
2037-
'\\'
2038-
} else {
2039-
match next {
2040-
'0' => '\0',
2041-
'a' => '\u{7}',
2042-
'b' => '\u{8}',
2043-
'f' => '\u{c}',
2044-
'n' => '\n',
2045-
'r' => '\r',
2046-
't' => '\t',
2047-
'Z' => '\u{1a}',
2048-
_ => *next,
2049-
}
2034+
} else if dialect_of!(self is SnowflakeDialect) {
2035+
s.push('\\');
2036+
s.push(*next);
2037+
chars.next();
2038+
} else {
2039+
let n = match next {
2040+
'0' => '\0',
2041+
'a' => '\u{7}',
2042+
'b' => '\u{8}',
2043+
'f' => '\u{c}',
2044+
'n' => '\n',
2045+
'r' => '\r',
2046+
't' => '\t',
2047+
'Z' => '\u{1a}',
2048+
_ => *next,
20502049
};
20512050
s.push(n);
20522051
chars.next(); // consume next

0 commit comments

Comments
 (0)