diff options
author | Clément Delafargue | 2023-04-12 14:36:57 +0000 |
---|---|---|
committer | GitHub | 2023-04-12 14:36:57 +0000 |
commit | 3e2eca0db85361d355de276b98797a86f0335e42 (patch) | |
tree | 5423ae5fd999b9fe3f29a4c2c0d1e91149eefb03 /runtime | |
parent | deab323c28dfcc12f94a2e0c96a2a0635a0b6748 (diff) |
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.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/haskell/injections.scm | 4 |
1 files changed, 4 insertions, 0 deletions
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) |