Skip to content

Conversation

@juleswritescode
Copy link
Collaborator

@juleswritescode juleswritescode commented Dec 14, 2025

The error node handling was necessary because the grammar was too rigid for our purposes.

For completions/hover, it makes sense to have a heavily "left-balanced" grammar—whenever a statement type is recognizable by its one, two, three etc. first tokens, it should be recognized as that statement type.

Example:
alter table auth.users | should be recognized as an alter table statement, it shouldn't require a trailing alter column … or drop column … and so on.

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