svelte: Revert Tree-sitter grammar upgrade (#17404)

Closes: #17310

This PR https://github.com/zed-industries/zed/pull/17364 broke my svelte
code, downgrading to the previous commit SHA
`b08d070e303d2a385d6d0ab3add500f8fa514443` fixes the issue.

Until the following issue is resolved, the commit SHA should not be
updated

- tree-sitter-svelte issue I filed:
https://github.com/Himujjal/tree-sitter-svelte/issues/61

Release Notes:

- N/A
This commit is contained in:
Albert Marashi 2024-09-05 23:35:38 +09:30 committed by GitHub
parent 93a355228f
commit 0988313805
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -12,4 +12,4 @@ language = "Svelte"
[grammars.svelte]
repository = "https://github.com/Himujjal/tree-sitter-svelte"
commit = "038dea960b58a88d3a8e916e81399d6bfed50ef8"
commit = "b08d070e303d2a385d6d0ab3add500f8fa514443"

View File

@ -1,8 +1,15 @@
; Special identifiers
;--------------------
; Treat capitalized tag names as constructors and types
((tag_name) @type
(#match? @type "^[A-Z]"))
; Regular (lowercase) tag names
((tag_name) @tag
(#match? @tag "^[a-z]"))
; TODO:
(tag_name) @tag
(attribute_name) @property
(erroneous_end_tag_name) @keyword
(comment) @comment