add support for targeting Rust vs Typescript source files/queries
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
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 namedtmp.ts
with contentsinterface Foo {}
in the project root directory and then runcargo run -- -l typescript -q "(interface_declaration) @interface_declaration"
you should see a result for that interface declaration in that source file