helixbass / tree-sitter-grep

The Unlicense
6 stars 1 forks source link

Multiple languages #6

Closed helixbass closed 1 year ago

helixbass commented 1 year ago

In this PR:

To test: Existing behavior should still work except you should have to add an explicit -l rust or --language rust command-line argument If you add eg a file named tmp.ts with contents interface Foo {} in the project root directory and then run cargo run -- -l typescript -q "(interface_declaration) @interface_declaration" you should see a result for that interface declaration in that source file