Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/svelte/rainbows.scm')
-rw-r--r--runtime/queries/svelte/rainbows.scm47
1 files changed, 30 insertions, 17 deletions
diff --git a/runtime/queries/svelte/rainbows.scm b/runtime/queries/svelte/rainbows.scm
index d05058e2..ce95ffd3 100644
--- a/runtime/queries/svelte/rainbows.scm
+++ b/runtime/queries/svelte/rainbows.scm
@@ -1,25 +1,38 @@
-; inherits: html
+[
+ (doctype)
+ (erroneous_end_tag)
+] @rainbow.scope
+
+([
+ (element)
+ ] @rainbow.scope
+ (#set! rainbow.include-children))
[
- (if_start)
- (else_if_start)
- (else_start)
- (if_end)
- (each_start)
- (each_end)
- (await_start)
- (then_start)
- (catch_start)
- (await_end)
- (key_start)
- (key_end)
- (snippet_start)
- (snippet_end)
- (expression)
+ (if_block)
+ (else_if_clause)
+ (else_clause)
+ (each_block)
+ (await_block)
+ (await_branch)
+ (attach_tag)
(html_tag)
(const_tag)
(debug_tag)
(render_tag)
+ (key_block)
+ (snippet_block)
+ (expression)
] @rainbow.scope
-["{" "}"] @rainbow.bracket
+[
+ "<"
+ ">"
+ "<!"
+ "</"
+ "/>"
+ (block_open)
+ (block_close)
+ "{"
+ "}"
+] @rainbow.bracket