Skip to content

Commit e0a6e62

Browse files
committed
the right way I suppose v24
1 parent 462eddf commit e0a6e62

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

src/tokenizer.rs

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2004,21 +2004,6 @@ impl<'a> Tokenizer<'a> {
20042004
return Ok(s);
20052005
}
20062006
}
2007-
// char if dialect_of!(self is SnowflakeDialect) && char.is_ascii_control() => {
2008-
// let n = match char {
2009-
// '\x00' => '\0',
2010-
// '\x07' => '\u{7}',
2011-
// '\x08' => '\u{8}',
2012-
// '\x12' => '\u{c}',
2013-
// '\x10' => '\n',
2014-
// '\x13' => '\r',
2015-
// '\x09' => '\t',
2016-
// '\x26' => '\u{1a}',
2017-
// _ => char,
2018-
// };
2019-
// s.push('\0');
2020-
// chars.next(); // consume symbol
2021-
// }
20222007
'\\' if settings.backslash_escape => {
20232008
// consume backslash
20242009
chars.next();
@@ -2034,10 +2019,10 @@ impl<'a> Tokenizer<'a> {
20342019
} else if dialect_of!(self is SnowflakeDialect) {
20352020
s.push('\\');
20362021
chars.next();
2037-
if let Some(next) = chars.peek() {
2038-
s.push('\x08');
2039-
chars.next();
2040-
}
2022+
// if let Some(next) = chars.peek() {
2023+
// s.push(*next);
2024+
// chars.next();
2025+
// }
20412026
} else {
20422027
let n = match next {
20432028
'0' => '\0',

0 commit comments

Comments
 (0)