File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -2033,20 +2033,22 @@ impl<'a> Tokenizer<'a> {
2033
2033
chars. next ( ) ; // consume next
2034
2034
}
2035
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,
2036
+ let n = if dialect_of ! ( self is SnowflakeDialect ) {
2037
+ s. push ( '\\' ) ;
2038
+ * next
2039
+ } else {
2040
+ match next {
2041
+ '0' => '\0' ,
2042
+ 'a' => '\u{7}' ,
2043
+ 'b' => '\u{8}' ,
2044
+ 'f' => '\u{c}' ,
2045
+ 'n' => '\n' ,
2046
+ 'r' => '\r' ,
2047
+ 't' => '\t' ,
2048
+ 'Z' => '\u{1a}' ,
2049
+ _ => * next,
2050
+ }
2046
2051
} ;
2047
- // if dialect_of!(self is SnowflakeDialect) {
2048
- // s.push('');
2049
- // }
2050
2052
s. push ( n) ;
2051
2053
chars. next ( ) ; // consume next
2052
2054
}
You can’t perform that action at this time.
0 commit comments