ZIm/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 Fix casing of "macOS" (#17040) 2024-08-28 19:10:49 -04:00
languages svelte: Migrate to tree-sitter-grammars/tree-sitter-svelte (#17529) 2024-09-17 12:02:25 -04:00
additional-learning-materials.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
channels.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
code-of-conduct.md docs: Add copywriting and design tweaks (#17514) 2024-09-06 15:57:14 -03:00
collaboration.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
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 Use vanity Discord link (#15880) 2024-08-06 16:55:51 -04:00
development.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
environment.md zed: Use CLI env for lang servers, tasks, terminal (#17075) 2024-08-29 18:09:06 +02:00
extensions.md docs: Add docs for defining slash commands in extensions (#16303) 2024-08-15 12:50:30 -04:00
feedback-and-support.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
fonts.md Fix casing of "macOS" (#17040) 2024-08-28 19:10:49 -04:00
getting-started.md Fix casing of "macOS" (#17040) 2024-08-28 19:10:49 -04:00
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 Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
linux.md Ubuntu 22 (Linux arm runner) fixes (#17643) 2024-09-10 12:40:54 -04:00
multibuffers.md Add a section about navigating within multibuffers (#14979) 2024-07-22 15:10:02 -04:00
remote-development.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
repl.md docs: Add design touch-ups (#17505) 2024-09-06 13:43:54 -03:00
snippets.md Add minimal snippets documentation (#14992) 2024-07-22 21:18:39 -04:00
SUMMARY.md docs: Fix how Tailwind CSS is spelled (#16975) 2024-08-27 17:19:25 -04:00
system-requirements.md Update system-requirements.md 2024-07-11 11:59:52 -07:00
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 Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00