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

Snippet without children matches code with children #102

Closed
seren5240 opened this issue Mar 27, 2024 · 2 comments · Fixed by #129
Closed

Snippet without children matches code with children #102

seren5240 opened this issue Mar 27, 2024 · 2 comments · Fixed by #129
Assignees

Comments

@seren5240
Copy link
Contributor

seren5240 commented Mar 27, 2024

NB please do not edit the editor from this link. Copy a forked version to experiment.

https://app.grit.io/studio?key=hWu-nA-6hu6_esJtvoXag

@ilevyor
Copy link
Contributor

ilevyor commented Mar 28, 2024

This is the default behavior for a snippet. I recently added a way to specify that a node with no children in a snippet must only match other nodes with no children. we could invert this, but it could break backwards compatibility for a patterns (would have to try and see).

@morgante
Copy link
Contributor

I think we should try inverting it and see if the stdlib breaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants