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

fix: Restrict :has, :not, and others to selector arguments #46

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

savetheclocktower
Copy link
Contributor

(fixes #45)

This isn't the elegant solution I was hoping for, but it's the smallest change that I could make work. Since :has, :not, :is, and :where are the only pseudo-classes that take selector arguments, we can prevent the conflict by disallowing plain values inside of those four altogether.

I bet there's a simpler solution, too, but I'm submitting this just in case.

@amaanq amaanq merged commit 31584d6 into tree-sitter:master Aug 17, 2024
4 checks passed
@amaanq
Copy link
Member

amaanq commented Aug 17, 2024

thank you! sorry for being so behind on reviewing this. just rebased and merged 🙂

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.

bug: Some selectors in :has are treated as plain values
2 participants