From 3e2eca0db85361d355de276b98797a86f0335e42 Mon Sep 17 00:00:00 2001 From: Clément Delafargue Date: Wed, 12 Apr 2023 16:36:57 +0200 Subject: 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.--- runtime/queries/haskell/injections.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/queries') 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) -- cgit v1.2.3-70-g09d2