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.
This commit is contained in:
Clément Delafargue 2023-04-12 16:36:57 +02:00 committed by GitHub
parent deab323c28
commit 3e2eca0db8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,2 +1,6 @@
((comment) @injection.content ((comment) @injection.content
(#set! injection.language "comment")) (#set! injection.language "comment"))
(quasiquote
(quoter) @injection.language
(quasiquote_body) @injection.content)