Skip to content

root level C style comments not parsed properly (/* */) #323

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

Closed
mmoncure opened this issue Apr 9, 2025 · 0 comments · Fixed by #332
Closed

root level C style comments not parsed properly (/* */) #323

mmoncure opened this issue Apr 9, 2025 · 0 comments · Fixed by #332
Assignees
Labels
bug Something isn't working

Comments

@mmoncure
Copy link

mmoncure commented Apr 9, 2025

issue: root level comments stop the parser

To Reproduce

test.sql:
/* this is a test */
select 0;

./postgrestools check test.sql
test.sql:1:1 syntax ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✖ Invalid statement: Unable to find root node

1 │ /* this is a test */
│ ^^^^^^^^^^^^^^^^^^^^
2 │ select 0;
3 │

@mmoncure mmoncure added the bug Something isn't working label Apr 9, 2025
@psteinroe psteinroe self-assigned this Apr 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants