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 wes-adams committed Jul 3, 2023
1 parent 70c02fa commit d097eef
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 d097eef

Please sign in to comment.