Basic (not working) tree-sitter syntax highlighting.

This commit is contained in:
Shibo Lyu 2022-09-30 01:25:26 +08:00
parent 1bf00890cd
commit 7c813791aa
9 changed files with 246 additions and 38 deletions

18
build_scripts/build_parser.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/zsh
# This script is supposed to be ran from the project root.
# ./build_scripts/build_parser.sh path/to/Nova.app
NOVAAPP=$1
cp build_scripts/Makefile tree-sitter-svelte/
pushd tree-sitter-svelte
../build_scripts/compile_parser.sh . $NOVAAPP
popd
mv tree-sitter-svelte/build/lib/libtree-sitter-svelte.dylib SvelteNova.novaextension/Syntaxes/tree-sitter-svelte.dylib
# Clean up the submodule folder to avoid problems
rm -rf tree-sitter-svelte/build
rm tree-sitter-svelte/Makefile