Skip to content

feat: improved grammar for pg-regress select.sql#672

Merged
juleswritescode merged 35 commits intomainfrom
feat/insert-grammar
Feb 20, 2026
Merged

feat: improved grammar for pg-regress select.sql#672
juleswritescode merged 35 commits intomainfrom
feat/insert-grammar

Conversation

@juleswritescode
Copy link
Copy Markdown
Collaborator

@juleswritescode juleswritescode commented Feb 6, 2026

The goal was to go through the select.sql file in the postgres regression suite and make sure that if somebody would type it out token-by-token, the grammar parses correctly in treesitter.

The tests in partial_no_errors.rs simulate the "typing states" and check that we don't have any errors in the treesitter tree.

The rest was just grammar adjustments and cleanup, and some downstream logic adjustments.

I think you can tell be looking at the snapshots that the approach is working very well. :)

I tried to build an agentic loop, but so far I've had little success. My hope is that once a couple of files are done, the agents have a better reference on how it should be done.

@juleswritescode juleswritescode merged commit 8af4d98 into main Feb 20, 2026
15 of 18 checks passed
@juleswritescode juleswritescode deleted the feat/insert-grammar branch February 20, 2026 16:21
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