diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 07:23:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-25 07:23:18 +0000 |
commit | 9c5cf7fc4a20988d0eda33e4a3afdf7168c05104 (patch) | |
tree | 85160e0a3a39feede46b7546566279525b3af373 /sqlglotrs/src/settings.rs | |
parent | Releasing debian version 25.31.4-1. (diff) | |
download | sqlglot-9c5cf7fc4a20988d0eda33e4a3afdf7168c05104.tar.xz sqlglot-9c5cf7fc4a20988d0eda33e4a3afdf7168c05104.zip |
Merging upstream version 25.32.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglotrs/src/settings.rs')
-rw-r--r-- | sqlglotrs/src/settings.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sqlglotrs/src/settings.rs b/sqlglotrs/src/settings.rs index 3068fd2..7bc4882 100644 --- a/sqlglotrs/src/settings.rs +++ b/sqlglotrs/src/settings.rs @@ -19,6 +19,7 @@ pub struct TokenTypeSettings { pub string: TokenType, pub var: TokenType, pub heredoc_string_alternative: TokenType, + pub hint: TokenType, } #[pymethods] @@ -38,6 +39,7 @@ impl TokenTypeSettings { string: TokenType, var: TokenType, heredoc_string_alternative: TokenType, + hint: TokenType, ) -> Self { TokenTypeSettings { bit_string, @@ -53,6 +55,7 @@ impl TokenTypeSettings { string, var, heredoc_string_alternative, + hint, } } } @@ -75,9 +78,11 @@ pub struct TokenizerSettings { pub var_single_tokens: HashSet<char>, pub commands: HashSet<TokenType>, pub command_prefix_tokens: HashSet<TokenType>, + pub tokens_preceding_hint: HashSet<TokenType>, pub heredoc_tag_is_identifier: bool, pub string_escapes_allowed_in_raw_strings: bool, pub nested_comments: bool, + pub hint_start: String, } #[pymethods] @@ -99,9 +104,11 @@ impl TokenizerSettings { var_single_tokens: HashSet<String>, commands: HashSet<TokenType>, command_prefix_tokens: HashSet<TokenType>, + tokens_preceding_hint: HashSet<TokenType>, heredoc_tag_is_identifier: bool, string_escapes_allowed_in_raw_strings: bool, nested_comments: bool, + hint_start: String, ) -> Self { let to_char = |v: &String| { if v.len() == 1 { @@ -150,9 +157,11 @@ impl TokenizerSettings { var_single_tokens: var_single_tokens_native, commands, command_prefix_tokens, + tokens_preceding_hint, heredoc_tag_is_identifier, string_escapes_allowed_in_raw_strings, nested_comments, + hint_start, } } } |