From f91bd93963a4c818bdb3b7a505f77335c3b55a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Delafargue?= Date: Wed, 29 Mar 2023 09:23:03 +0200 Subject: [PATCH] tree-sitter(haskell): use quasiquoters as an injection point 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. --- runtime/queries/haskell/injections.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/queries/haskell/injections.scm b/runtime/queries/haskell/injections.scm index 321c90add371..788b8b8c6cbb 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)