We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8999bf3 commit c131606Copy full SHA for c131606
1 file changed
src/tokenizer.rs
@@ -2033,20 +2033,22 @@ impl<'a> Tokenizer<'a> {
2033
chars.next(); // consume next
2034
}
2035
else {
2036
- let n = match next {
2037
- '0' => '\0',
2038
- 'a' => '\u{7}',
2039
- 'b' => '\u{8}',
2040
- 'f' => '\u{c}',
2041
- 'n' => '\n',
2042
- 'r' => '\r',
2043
- 't' => '\t',
2044
- 'Z' => '\u{1a}',
2045
- _ => *next,
+ let n = if dialect_of!(self is SnowflakeDialect) {
+ s.push('\\');
+ *next
+ } else {
+ match next {
+ '0' => '\0',
+ 'a' => '\u{7}',
+ 'b' => '\u{8}',
+ 'f' => '\u{c}',
+ 'n' => '\n',
2046
+ 'r' => '\r',
2047
+ 't' => '\t',
2048
+ 'Z' => '\u{1a}',
2049
+ _ => *next,
2050
+ }
2051
};
- // if dialect_of!(self is SnowflakeDialect) {
- // s.push('');
- // }
2052
s.push(n);
2053
2054
0 commit comments