zed/docs/src
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
..
assistant Ollama: Specify keep_alive via settings (#17906) 2024-09-16 18:47:25 -04:00
development docs: Add copywriting and design tweaks (#17514) 2024-09-06 15:57:14 -03:00
extensions
languages svelte: Migrate to tree-sitter-grammars/tree-sitter-svelte (#17529) 2024-09-17 12:02:25 -04:00
additional-learning-materials.md
channels.md
code-of-conduct.md docs: Add copywriting and design tweaks (#17514) 2024-09-06 15:57:14 -03:00
collaboration.md
completions.md docs: Add design touch-ups (#17505) 2024-09-06 13:43:54 -03:00
configuring-languages.md Remove incorrect documentation for language-specific theme overrides (#17894) 2024-09-16 12:41:33 -04:00
configuring-zed.md Add cursor_shape setting for the default editor (#17572) 2024-09-16 21:01:43 -06:00
contribute-to-zed.md docs: Add design touch-ups (#17505) 2024-09-06 13:43:54 -03:00
conversations.md
development.md
environment.md
extensions.md
feedback-and-support.md
fonts.md
getting-started.md
git.md docs: Update names of supported Git providers (#17436) 2024-09-05 13:42:49 -04:00
key-bindings.md Add keybinding to swap pane items (#15583) 2024-09-13 15:17:01 -04:00
languages.md
linux.md Ubuntu 22 (Linux arm runner) fixes (#17643) 2024-09-10 12:40:54 -04:00
multibuffers.md
remote-development.md
repl.md docs: Add design touch-ups (#17505) 2024-09-06 13:43:54 -03:00
snippets.md
SUMMARY.md
system-requirements.md
tasks.md docs: Fix shell setting doc (#17208) 2024-09-03 13:19:42 -04:00
telemetry.md docs: Use relative Markdown links (#17449) 2024-09-05 15:31:03 -04:00
themes.md docs: Add copywriting and design tweaks (#17514) 2024-09-06 15:57:14 -03:00
vim.md docs: Add copywriting tweaks to the Vim page (#17766) 2024-09-12 15:06:38 -03:00
windows.md