summaryrefslogtreecommitdiff
path: root/runtime/queries/rust/injections.scm
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-08 14:18:25 +0000
committerBlaž Hrastnik2021-04-08 14:25:35 +0000
commit71c06c11cb2f3831326ec10035b66ac6df075c8a (patch)
tree96ae0b2a88a393bbbe75a2fc56ccb1aedb9a05d7 /runtime/queries/rust/injections.scm
parent52da68e49a582f960ebf3ec26ae3279b102b01f2 (diff)
Import tree sitter queries.
Diffstat (limited to 'runtime/queries/rust/injections.scm')
-rw-r--r--runtime/queries/rust/injections.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/queries/rust/injections.scm b/runtime/queries/rust/injections.scm
new file mode 100644
index 00000000..6035d418
--- /dev/null
+++ b/runtime/queries/rust/injections.scm
@@ -0,0 +1,9 @@
+((macro_invocation
+ (token_tree) @injection.content)
+ (#set! injection.language "rust")
+ (#set! injection.include-children))
+
+((macro_rule
+ (token_tree) @injection.content)
+ (#set! injection.language "rust")
+ (#set! injection.include-children))