mirror of
https://github.com/laosb/SvelteNova.git
synced 2025-04-30 04:31:09 +00:00
doc: Update to reflect tree-sitter
related changes.
This commit is contained in:
parent
d5c94b545a
commit
81b5d52c8c
3 changed files with 25 additions and 7 deletions
|
@ -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
|
||||
|
||||
- Updated Svelte Language Server to `0.14.29`.
|
||||
|
|
13
README.md
13
README.md
|
@ -1,10 +1,17 @@
|
|||
# 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!
|
||||
|
||||
|
|
|
@ -5,12 +5,15 @@ Both `compile_parser.sh` and `Makefile` are provided by Panic
|
|||
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`:
|
||||
Assuming you have Nova.app installed at `/Applications/Nova.app`, run
|
||||
`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
|
||||
./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.
|
||||
It will also copy the build output to correct place and cleanup temp files.
|
||||
|
|
Loading…
Add table
Reference in a new issue