doc: Update to reflect tree-sitter related changes.

This commit is contained in:
Shibo Lyu 2022-11-03 16:45:19 +00:00
parent d5c94b545a
commit 81b5d52c8c
3 changed files with 25 additions and 7 deletions

View file

@ -1,3 +1,11 @@
# v0.2.0
- 🌲 **`tree-sitter`-based syntax highlighting and folding**, powered by
[`Himujjal/tree-sitter-svelte`](https://github.com/Himujjal/tree-sitter-svelte).
- `tree-sitter` support requires **Nova 10**. Older Nova versions will still
use only RegEx-based highlighting.
- Updated Svelte Language Server to `0.14.37`.
# v0.1.8 # v0.1.8
- Updated Svelte Language Server to `0.14.29`. - Updated Svelte Language Server to `0.14.29`.

View file

@ -1,10 +1,17 @@
# Svelte Nova # Svelte Nova
Svelte support for Nova. Svelte support for Nova, with `tree-sitter`-based syntax highlighting and
language server support.
Needs `node` installed for starting [Svelte Language Server](https://github.com/sveltejs/language-tools/tree/master/packages/language-server). Needs `node` installed for starting
[Svelte Language Server](https://github.com/sveltejs/language-tools/tree/master/packages/language-server).
Inspired by & took code pieces from [`nova-vue`](https://github.com/tommasongr/nova-vue) and [`nova-typescript`](https://github.com/apexskier/nova-typescript). Inspired by & took code pieces from
[`nova-vue`](https://github.com/tommasongr/nova-vue) and
[`nova-typescript`](https://github.com/apexskier/nova-typescript).
For Nova 10 & up, this extension is using `tree-sitter` grammar from
[`Himujjal/tree-sitter-svelte`](https://github.com/Himujjal/tree-sitter-svelte).
Thanks for Svelte team & Panic for delivering their masterpieces! Thanks for Svelte team & Panic for delivering their masterpieces!

View file

@ -5,12 +5,15 @@ Both `compile_parser.sh` and `Makefile` are provided by Panic
and may be retrieved from and may be retrieved from
[here](https://docs.nova.app/syntax-reference/build_script.zip). [here](https://docs.nova.app/syntax-reference/build_script.zip).
Run `build_parser.sh` (from project root) to build the Assuming you have Nova.app installed at `/Applications/Nova.app`, run
`tree-sitter-svelte.dylib`: `yarn build:tree-sitter` to build `libtree-sitter-svelte.dylib`. This command is
also included in `yarn build`.
If you installed Nova.app elsewhere, run `build_parser.sh` (from project root)
to build, specifying the path to Nova.app as the first argument:
```sh ```sh
./build_scripts/build_parser.sh /Applications/Nova.app ./build_scripts/build_parser.sh /Applications/Nova.app
``` ```
You may need to adjust the path to `Nova.app`. It will also copy the build It will also copy the build output to correct place and cleanup temp files.
output to correct place and cleanup temp files.