Skip to content

Commit

Permalink
tree-sitter(haskell): use quasiquoters as an injection point (helix-e…
Browse files Browse the repository at this point in the history
…ditor#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.
  • Loading branch information
divarvel authored and Triton171 committed Jun 18, 2023
1 parent 2f78609 commit 125377a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/queries/haskell/injections.scm
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
((comment) @injection.content
(#set! injection.language "comment"))

(quasiquote
(quoter) @injection.language
(quasiquote_body) @injection.content)

0 comments on commit 125377a

Please sign in to comment.