implement very basic highlighting

This commit is contained in:
2023-07-07 01:47:46 +00:00
parent 27596798d6
commit c2fcc8b6ee
17 changed files with 87 additions and 20 deletions

15
Makefile Normal file
View File

@@ -0,0 +1,15 @@
CACHEDIR := $(PWD)/cache
build:
cd tree-sitter-nix-shell && tree-sitter generate
test: build
cd tree-sitter-nix-shell && XDG_CACHE_HOME="${CACHEDIR}" tree-sitter test
XDG_CACHE_HOME="${CACHEDIR}" ./tests/test_highlight basic
clean:
rm -f tree-sitter-nix-shell/{Cargo.toml,binding.gyp}
rm -rf tree-sitter-nix-shell/{bindings/,src/}
rm -rf "${CACHEDIR}"
.PHONY: build test clean