Skip to content

Conversation

@ribru17
Copy link
Collaborator

@ribru17 ribru17 commented Nov 22, 2025

As enforced by query.c, quantifiers can appear any number of times, and in any order after a pattern, including before or after any captures.

Looks like this commit also casually cuts the state count in half :) (shaving 8kb off the compiled parser size, from 37)

As enforced by `query.c`, quantifiers can appear any number of times,
and in any order after a pattern, including before or after any
captures.
@clason clason merged commit eeac2b7 into tree-sitter-grammars:master Nov 22, 2025
4 checks passed
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