Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly handle nested comments #5

Merged
merged 1 commit into from
Jan 6, 2025
Merged

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