ZIm/extensions
Albert Marashi accff826ca
svelte: Migrate to tree-sitter-grammars/tree-sitter-svelte (#17529)
> [!NOTE]
> The https://github.com/tree-sitter-grammars/tree-sitter-svelte
repository seems to be more well maintained, with higher quality code,
and as per https://github.com/zed-extensions/svelte/issues/1 it was
suggested that we swap to this repository for Svelte grammars

- Closes https://github.com/zed-industries/zed/issues/17310
- Closes https://github.com/zed-industries/zed/issues/10893
- Closes https://github.com/zed-industries/zed/issues/12833
- Closes https://github.com/zed-extensions/svelte/issues/1
- Closes https://github.com/zed-industries/zed/issues/14943
- Closes https://github.com/zed-extensions/svelte/issues/2

- Added: buffer/file symbol outlines for `.svelte` (`outlines.scm`)
- Improved: Attribute directives & modifiers in `.svelte` files can be
styled independently.
- Fixed: issue where svelte expression inside quotes failed parsing
- Improved: Svelte components in Markup are styled differently from
tags.
- Added: Support for Svelte 5 syntax (`{#snippet children()}`, `{@render
foo()`)
- Change: Svelte now using
[tree-sitter-grammars/tree-sitter-svelte](https://github.com/tree-sitter-grammars/tree-sitter-svelte)
for language highlighting
- Added: Support for typescript syntax in svelte expressions


![image](https://github.com/user-attachments/assets/49d199ee-7550-49a7-912d-070cf691b029)

![image](https://github.com/user-attachments/assets/848ac5b6-62da-4c42-8e24-b7023504f8af)

Release Notes:

- N/A

---

**tree-sitter-grammar things to improve**
- [ ] snippet functions aren't being treated as JS code
- [ ] we should be able to detect @component comments and treat them as
markdown
- [x] `foo:bar` style/class/prop directives
- [x] `--foo="..."` var fields
- [ ] snippet/if blocks's children may need to be indented a little
further

Will implement some of the rest of these in a separate PR

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-09-17 12:02:25 -04:00
..
astro extensions: Upgrade zed_extension_api to v0.1.0 (#16955) 2024-08-27 12:00:43 -04:00
clojure chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
csharp chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
dart dart: Bump to v0.1.0 (#17887) 2024-09-16 11:57:34 -04:00
deno chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
elixir chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
elm chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
emmet extensions: Upgrade zed_extension_api to v0.1.0 (#16955) 2024-08-27 12:00:43 -04:00
erlang erlang: Bump to v0.1.0 (#17679) 2024-09-10 23:21:24 -04:00
gleam chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
glsl chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
haskell extensions: Upgrade zed_extension_api to v0.1.0 (#16955) 2024-08-27 12:00:43 -04:00
html chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
lua chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
ocaml ocaml: Fix indentation in files (#17942) 2024-09-17 11:42:20 -04:00
perplexity Add perplexity extension readme (#17861) 2024-09-15 19:45:06 -04:00
php php: Remove invalid node types from highlights queries (#17680) 2024-09-10 23:37:37 -04:00
prisma extensions: Upgrade zed_extension_api to v0.1.0 (#16955) 2024-08-27 12:00:43 -04:00
purescript extensions: Upgrade zed_extension_api to v0.1.0 (#16955) 2024-08-27 12:00:43 -04:00
racket Clean up whitespace (#10755) 2024-04-23 13:31:21 -04:00
ruby chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
ruff chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
scheme Clean up whitespace (#10755) 2024-04-23 13:31:21 -04:00
slash-commands-example slash-commands-example: Fix numbering in README (#17452) 2024-09-05 15:39:09 -04:00
snippets chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
svelte svelte: Migrate to tree-sitter-grammars/tree-sitter-svelte (#17529) 2024-09-17 12:02:25 -04:00
terraform terraform: Update indents (#17200) 2024-09-09 14:31:57 -07:00
test-extension zed_extension_api: Fork new version of extension API (#17795) 2024-09-13 10:54:23 -04:00
toml chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
uiua extensions: Upgrade zed_extension_api to v0.1.0 (#16955) 2024-08-27 12:00:43 -04:00
vue extensions: Upgrade zed_extension_api to v0.1.0 (#16955) 2024-08-27 12:00:43 -04:00
zig chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
.gitignore Provide wasm extensions with APIs needed for using pre-installed LSP binaries (#9085) 2024-03-08 17:18:06 -05:00