Use nvim semantics in tests

To be more explicit: this makes it so the behaviour is "last-defined,
innermost capture wins".
This commit is contained in:
Bruno BELANYI 2024-04-08 21:15:20 +01:00
parent 7d6dce936a
commit d4d88a6f01
2 changed files with 3 additions and 3 deletions

View file

@ -4,11 +4,11 @@ all:
.PHONE: test .PHONE: test
test: all test: all
tree-sitter test tree-sitter test --apply-all-captures
.PHONE: update-tests .PHONE: update-tests
update-tests: all update-tests: all
tree-sitter test -u tree-sitter test -u --apply-all-captures
playground: playground:
nix shell pkgs#emscripten --command tree-sitter build-wasm nix shell pkgs#emscripten --command tree-sitter build-wasm

View file

@ -93,7 +93,7 @@
tree-sitter = { tree-sitter = {
enable = true; enable = true;
name = "tree-sitter tests"; name = "tree-sitter tests";
entry = "${tree-sitter-env}/bin/tree-sitter test"; entry = "${tree-sitter-env}/bin/tree-sitter test --apply-all-captures";
pass_filenames = false; pass_filenames = false;
}; };