From edfb9bf03df4555bba520f47bea8db966d4c739e Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Thu, 12 Sep 2024 20:46:42 +0200 Subject: Update the expectations on grammars Outside the Nix setup, it will be the responsibility of something else (might be a script) to provide the treesitter grammars. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a4cec94..5630d10 100644 --- a/Makefile +++ b/Makefile @@ -121,12 +121,11 @@ FILES = $(DEPS) \ $(CC) $(CFLAGS) -c $< -o $@ grammars: - @if [ -n "$$TREESITTER_GRAMMARS" ]; then \ - IFS=":"; for p in "$$TREESITTER_GRAMMARS"; do \ + @if [ "$(SYNTAX_ENABLE)" = "true" ] && [ -n "$$BUNDLE_TREESITTER_GRAMMARS" ]; then \ + IFS=":"; for p in "$$BUNDLE_TREESITTER_GRAMMARS"; do \ cp -rL --no-preserve=mode "$$p"/ grammars; \ done \ else \ - echo "TODO: download and build default set of grammars"; \ mkdir -p ./grammars; \ fi -- cgit v1.2.3