From d4d88a6f0137ae51a634c5c09887f052056020a3 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 8 Apr 2024 21:15:20 +0100 Subject: [PATCH] Use nvim semantics in tests To be more explicit: this makes it so the behaviour is "last-defined, innermost capture wins". --- Makefile | 4 ++-- flake.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f12211c..e421948 100644 --- a/Makefile +++ b/Makefile @@ -4,11 +4,11 @@ all: .PHONE: test test: all - tree-sitter test + tree-sitter test --apply-all-captures .PHONE: update-tests update-tests: all - tree-sitter test -u + tree-sitter test -u --apply-all-captures playground: nix shell pkgs#emscripten --command tree-sitter build-wasm diff --git a/flake.nix b/flake.nix index 4c513fb..e7053c4 100644 --- a/flake.nix +++ b/flake.nix @@ -93,7 +93,7 @@ tree-sitter = { enable = true; 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; };