You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
People ask pretty often in Discord about the concept of anonymous nodes. Since the playground doesn't show them alongside named nodes, there's not much visibility around them, and it's easy for an inexperienced Tree-sitter user to think that they just aren't there, or that they can't be queried against.
Expected behavior
We implemented the playground inside of Pulsar as part of the tree-sitter-tools package, and I solved this by making a toggle:
It could be off by default, but its presence would make it clearer that anonymous nodes aren't absent — they're just hidden from the tree by default.
I'll likely get around to contributing this myself as a PR, but maybe someone else might get to it first.
The text was updated successfully, but these errors were encountered:
Problem
People ask pretty often in Discord about the concept of anonymous nodes. Since the playground doesn't show them alongside named nodes, there's not much visibility around them, and it's easy for an inexperienced Tree-sitter user to think that they just aren't there, or that they can't be queried against.
Expected behavior
We implemented the playground inside of Pulsar as part of the tree-sitter-tools package, and I solved this by making a toggle:
It could be off by default, but its presence would make it clearer that anonymous nodes aren't absent — they're just hidden from the tree by default.
I'll likely get around to contributing this myself as a PR, but maybe someone else might get to it first.
The text was updated successfully, but these errors were encountered: