mirror of
https://github.com/laosb/SvelteNova.git
synced 2025-11-29 04:31:37 +00:00
Basic (not working) tree-sitter syntax highlighting.
This commit is contained in:
parent
1bf00890cd
commit
7c813791aa
9 changed files with 246 additions and 38 deletions
18
build_scripts/build_parser.sh
Executable file
18
build_scripts/build_parser.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue