zed/docs/src/languages
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
..
asciidoc.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
astro.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
bash.md Fix casing of "macOS" (#17040) 2024-08-28 19:10:49 -04:00
biome.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
c.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
clojure.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
cpp.md docs: Document configuring binary path for clangd (#17433) 2024-09-05 13:05:09 -04:00
csharp.md docs: Use json to fix syntax highlighting (#17884) 2024-09-16 11:04:56 -04:00
css.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
dart.md dart: Respect LSP binary settings (#17494) 2024-09-16 11:03:51 -04:00
deno.md docs: Document usage of deno fmt (#17918) 2024-09-17 09:23:48 -04:00
docker.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
elixir.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
elm.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
emmet.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
erlang.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
fish.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
gdscript.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
gleam.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
glsl.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
go.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
groovy.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
haskell.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
html.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
java.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
javascript.md Fix typo (#16657) 2024-08-22 14:02:41 +03:00
json.md Fix casing of "macOS" (#17040) 2024-08-28 19:10:49 -04:00
julia.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
kotlin.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
lua.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
luau.md Don't use a mix of tabs and spaces (#17045) 2024-08-28 19:25:19 -04:00
makefile.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
markdown.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
nim.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
ocaml.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
php.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
prisma.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
proto.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
purescript.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
python.md docs: Use relative Markdown links (#17449) 2024-09-05 15:31:03 -04:00
r.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
racket.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
roc.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
rst.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
ruby.md ruby: Replace default tasks with a stub message (#16752) 2024-08-29 10:32:05 -07:00
rust.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
scala.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
scheme.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
svelte.md svelte: Migrate to tree-sitter-grammars/tree-sitter-svelte (#17529) 2024-09-17 12:02:25 -04:00
swift.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
tailwindcss.md docs: Fix how Tailwind CSS is spelled (#16975) 2024-08-27 17:19:25 -04:00
terraform.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
toml.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
typescript.md docs: Use json to fix syntax highlighting (#17884) 2024-09-16 11:04:56 -04:00
uiua.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
vue.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00
yaml.md Add YAML LSP initialization_options (#17479) 2024-09-06 11:42:36 -04:00
yarn.md docs: Format docs (#15352) 2024-07-27 14:52:21 -04:00
zig.md Docs Party 2024 (#15876) 2024-08-09 13:37:54 -04:00