Skip to content

Commit

Permalink
svelte: Update Tree-sitter grammar (#17323)
Browse files Browse the repository at this point in the history
Before:
![Screenshot from 2024-09-03
20-36-48](https://github.com/user-attachments/assets/c4eca8c9-977b-461c-bb0a-77c0d94554b8)

After:
![Screenshot from 2024-09-03
20-43-44](https://github.com/user-attachments/assets/d9b9653c-29c0-4273-85ee-040fb51af07c)

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <[email protected]>
  • Loading branch information
matubu and maxdeviant authored Sep 4, 2024
1 parent a092ff0 commit bde1c95
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/svelte/extension.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ language = "Svelte"

[grammars.svelte]
repository = "https://github.com/Himujjal/tree-sitter-svelte"
commit = "ea528fc9985aed8d93c9f438c185644a33d011af"
commit = "038dea960b58a88d3a8e916e81399d6bfed50ef8"
1 change: 1 addition & 0 deletions extensions/svelte/languages/svelte/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
[
(text)
(raw_text_expr)
(raw_text_each)
] @none

[
Expand Down
1 change: 1 addition & 0 deletions extensions/svelte/languages/svelte/indents.scm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
(if_statement)
(each_statement)
(await_statement)
(snippet_statement)
(script_element)
(style_element)
] @indent
3 changes: 3 additions & 0 deletions extensions/svelte/languages/svelte/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@

((raw_text_expr) @content
(#set! "language" "javascript"))

((raw_text_each) @content
(#set! "language" "javascript"))

0 comments on commit bde1c95

Please sign in to comment.