From 8978da3b39d7ca3cf83ee30fcc63ffe0e5453fb2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 8 Apr 2024 10:11:50 +0200 Subject: Adding upstream version 23.7.0. Signed-off-by: Daniel Baumann --- sqlglotrs/src/settings.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sqlglotrs/src/settings.rs') diff --git a/sqlglotrs/src/settings.rs b/sqlglotrs/src/settings.rs index c6e76a7..4cacb9b 100644 --- a/sqlglotrs/src/settings.rs +++ b/sqlglotrs/src/settings.rs @@ -10,6 +10,7 @@ pub struct TokenTypeSettings { pub break_: TokenType, pub dcolon: TokenType, pub heredoc_string: TokenType, + pub raw_string: TokenType, pub hex_string: TokenType, pub identifier: TokenType, pub number: TokenType, @@ -28,6 +29,7 @@ impl TokenTypeSettings { break_: TokenType, dcolon: TokenType, heredoc_string: TokenType, + raw_string: TokenType, hex_string: TokenType, identifier: TokenType, number: TokenType, @@ -42,6 +44,7 @@ impl TokenTypeSettings { break_, dcolon, heredoc_string, + raw_string, hex_string, identifier, number, @@ -151,7 +154,7 @@ impl TokenizerSettings { #[derive(Clone, Debug)] #[pyclass] pub struct TokenizerDialectSettings { - pub escape_sequences: HashMap, + pub unescaped_sequences: HashMap, pub identifiers_can_start_with_digit: bool, } @@ -159,11 +162,11 @@ pub struct TokenizerDialectSettings { impl TokenizerDialectSettings { #[new] pub fn new( - escape_sequences: HashMap, + unescaped_sequences: HashMap, identifiers_can_start_with_digit: bool, ) -> Self { TokenizerDialectSettings { - escape_sequences, + unescaped_sequences, identifiers_can_start_with_digit, } } -- cgit v1.2.3