Refine svelte queries to work with zed-style highlights

Bump scheme dependency:
This commit is contained in:
Mikayla Maki 2023-07-13 22:30:41 -07:00
parent 1424a7a56a
commit ff8a89a075
No known key found for this signature in database
5 changed files with 52 additions and 71 deletions

View file

@ -4,6 +4,25 @@
(raw_text) @content
(#set! "language" "javascript"))
((script_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_language)))
(raw_text) @content)
(#eq? @_language "ts")
(#set! "language" "typescript"))
((script_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_language)))
(raw_text) @content)
(#eq? @_language "typescript")
(#set! "language" "typescript"))
(style_element
(raw_text) @content
(#set! "language" "css"))
((raw_text_expr) @content
(#set! "language" "javascript"))