tree-sitter / node-tree-sitter

Node.js bindings for tree-sitter
https://www.npmjs.com/package/tree-sitter
MIT License
648 stars 113 forks source link

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

Open segevfiner opened 11 months ago

segevfiner commented 11 months ago

"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.