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:
parent
7d6dce936a
commit
d4d88a6f01
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue