Skip to content

Commit 4e0974e

Browse files
committed
the right way I suppose v2
1 parent 92d86a4 commit 4e0974e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/tokenizer.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,18 +2005,18 @@ impl<'a> Tokenizer<'a> {
20052005
}
20062006
}
20072007
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(n);
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');
20202020
chars.next(); // consume symbol
20212021
}
20222022
'\\' if settings.backslash_escape => {

0 commit comments

Comments
 (0)