tree-sitter / tree-sitter/node-tree-sitter

Support for all query predicates supported by "official" tree sitter queries

Open
#179 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
876
Forks
172
PR merge metrics
No merged PRs in 30d

Description

"Official" tag queries, e.g. https://github.com/tree-sitter/tree-sitter-javascript/blob/master/queries/tags.scm, use a few predicates that are not supported by this library. e.g. #select-adjacent!, #strip!, #not-match?, it would be nice to support them.

Supporting custom query predicates, implemented in JS, can also be helpful.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the predicates used in tree-sitter-javascript's queries/tags.scm with the predicates supported by this Node.js binding. Determine the API and scope needed for #select-adjacent!, #strip!, #not-match?, and custom JavaScript predicates; done means the supported official predicates work and the custom-predicate behavior is defined and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
devtools, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.