mirror of
				https://github.com/apache/datafusion-sqlparser-rs.git
				synced 2025-10-31 15:17:41 +00:00 
			
		
		
		
	BigQuery support inline comment with hash syntax (#1192)
This commit is contained in:
		
							parent
							
								
									23103302e6
								
							
						
					
					
						commit
						732e1ec1fc
					
				
					 2 changed files with 19 additions and 1 deletions
				
			
		|  | @ -984,7 +984,7 @@ impl<'a> Tokenizer<'a> { | |||
|                 } | ||||
|                 '{' => self.consume_and_return(chars, Token::LBrace), | ||||
|                 '}' => self.consume_and_return(chars, Token::RBrace), | ||||
|                 '#' if dialect_of!(self is SnowflakeDialect) => { | ||||
|                 '#' if dialect_of!(self is SnowflakeDialect | BigQueryDialect) => { | ||||
|                     chars.next(); // consume the '#', starting a snowflake single-line comment
 | ||||
|                     let comment = self.tokenize_single_line_comment(chars); | ||||
|                     Ok(Some(Token::Whitespace(Whitespace::SingleLineComment { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ifeanyi Ubah
						Ifeanyi Ubah