aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorErasin Wang2023-07-14 12:56:28 +0000
committerGitHub2023-07-14 12:56:28 +0000
commit2cb00bcbc4c82afd6da7f61d85b38830230fc526 (patch)
treec9a667b0cc94ee8631e4f212e0586c756b66dc5a /runtime
parentbc4f08febf87c4d498971153715e30a39c61d511 (diff)
Support inlay-hints for svelteserver. (#7622)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/svelte/indents.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/queries/svelte/indents.scm b/runtime/queries/svelte/indents.scm
new file mode 100644
index 00000000..d0408d61
--- /dev/null
+++ b/runtime/queries/svelte/indents.scm
@@ -0,0 +1,18 @@
+[
+ (element)
+ (if_statement)
+ (each_statement)
+ (await_statement)
+ (script_element)
+ (style_element)
+] @indent
+
+[
+ (end_tag)
+ (else_statement)
+ (if_end_expr)
+ (each_end_expr)
+ (await_end_expr)
+ ">"
+ "/>"
+] @outdent \ No newline at end of file