Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix svelte injections / outline (#8194)

Robin Pfäffle576f8d3ef3c2
diff --git a/crates/zed/src/languages/svelte/injections.scm b/crates/zed/src/languages/svelte/injections.scm
index 8c1ac9fcd0b..1cbf02cfa26 100755
--- a/crates/zed/src/languages/svelte/injections.scm
+++ b/crates/zed/src/languages/svelte/injections.scm
@@ -1,7 +1,11 @@
; injections.scm
; --------------
-(script_element
- (raw_text) @content
+((script_element
+ (start_tag
+ (attribute
+ (quoted_attribute_value (attribute_value) @_language))?)
+ (raw_text) @content)
+ (#eq? @_language "")
(#set! "language" "javascript"))
((script_element