aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/haskell
diff options
context:
space:
mode:
authorBorys Lykah2023-07-09 17:17:01 +0000
committerGitHub2023-07-09 17:17:01 +0000
commit7c338429f845315fb276ff482f91b94b3102dbd8 (patch)
tree0b18cb105e4552c0594dc206e275335e3c482440 /runtime/queries/haskell
parentc33795e770808f11c975f30848067ce1c7ee85be (diff)
Add language support for persistent library syntax (#7261)
Diffstat (limited to 'runtime/queries/haskell')
-rw-r--r--runtime/queries/haskell/injections.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/queries/haskell/injections.scm b/runtime/queries/haskell/injections.scm
index 788b8b8c..5ee3478b 100644
--- a/runtime/queries/haskell/injections.scm
+++ b/runtime/queries/haskell/injections.scm
@@ -2,5 +2,13 @@
(#set! injection.language "comment"))
(quasiquote
+ (quoter) @_quoter
+ ((quasiquote_body) @injection.content
+ (#match? @_quoter "(persistWith|persistLowerCase|persistUpperCase)")
+ (#set! injection.language "haskell-persistent")
+ )
+)
+
+(quasiquote
(quoter) @injection.language
(quasiquote_body) @injection.content)