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

16
build_scripts/README.md Normal file
View file

@ -0,0 +1,16 @@
# `build_scripts`
Both `compile_parser.sh` and `Makefile` are provided by Panic
[on their doc site](https://docs.nova.app/syntax-reference/tree-sitter/#compiling-a-parser),
and may be retrieved from
[here](https://docs.nova.app/syntax-reference/build_script.zip).
Run `build_parser.sh` (from project root) to build the
`tree-sitter-svelte.dylib`:
```sh
./build_scripts/build_parser.sh /Applications/Nova.app
```
You may need to adjust the path to `Nova.app`. It will also copy the build
output to correct place and cleanup temp files.