We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a6e62 commit fc5a8c9Copy full SHA for fc5a8c9
src/tokenizer.rs
@@ -2017,12 +2017,14 @@ impl<'a> Tokenizer<'a> {
2017
s.push(*next);
2018
chars.next(); // consume next
2019
} else if dialect_of!(self is SnowflakeDialect) {
2020
- s.push('\\');
+ s.push(ch);
2021
chars.next();
2022
- // if let Some(next) = chars.peek() {
2023
- // s.push(*next);
2024
- // chars.next();
2025
- // }
+ if let Some(next) = chars.peek() {
+ s.push(*next);
+ //no `chars.next()` to avoid the edge case
+ // where '\\b['] where `[ ]` is the char we would be next at,
2026
+ // since `chars.next()` wouldn't allow us to terminate this string
2027
+ }
2028
} else {
2029
let n = match next {
2030
'0' => '\0',
0 commit comments