Skip to content

Conversation

@hansott
Copy link
Member

@hansott hansott commented Jan 6, 2025

The tokenizer currently throws EOF error for

select 'foo' /*/**/*/

last_ch causes problems when tokenizing nested comments, we have to consume the combination of /* or */

The existing tokenize_nested_multiline_comment test fails after fixing this logic:

/*multi-line\n* \n/* comment \n /*comment*/*/ */ /comment*/
^^ Start                                      ^^ End nested comment

Relevant: apache#726

The tokenizer currently throws EOF error for

`select 'foo' /*/**/*/`

`last_ch` causes problems when tokenizing nested comments, we have to
consume the combination of /* or */

The existing `tokenize_nested_multiline_comment` test fails after fixing
this logic:

/*multi-line\n* \n/* comment \n /*comment*/*/ */ /comment*/
^^ Start                                      ^^ End nested comment

Relevant: apache#726
@willem-delbare willem-delbare merged commit 91b78cc into main Jan 6, 2025
18 of 20 checks passed
@hansott hansott deleted the nested-comments branch January 6, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants