Unnamed repository; edit this file 'description' to name the repository.
tree-sitter(haskell): use quasiquoters as an injection point (#6474)
Similar to tagged templates in JS, quasiquoters allow to embed external languages in haskell, so it makes sense to treat them as an injection point.
Clément Delafargue 2023-04-12
parent deab323 · commit 3e2eca0
-rw-r--r--runtime/queries/haskell/injections.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/queries/haskell/injections.scm b/runtime/queries/haskell/injections.scm
index 321c90ad..788b8b8c 100644
--- a/runtime/queries/haskell/injections.scm
+++ b/runtime/queries/haskell/injections.scm
@@ -1,2 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))
+
+(quasiquote
+ (quoter) @injection.language
+ (quasiquote_body) @injection.content)