From 96e01877b82760a1852344f6ffd3a51bd6d36c0e Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Fri, 15 Dec 2023 00:05:27 +0100 Subject: [PATCH] highlights(haskell): namespaced string quasiquote --- queries/haskell/highlights.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/queries/haskell/highlights.scm b/queries/haskell/highlights.scm index 1fea39b08..eb6380ea0 100644 --- a/queries/haskell/highlights.scm +++ b/queries/haskell/highlights.scm @@ -378,8 +378,16 @@ (quoter) @function.call (quasiquote - (quoter) @_name (#eq? @_name "qq") + [ + (quoter) @_name + (_ (variable) @_name) + ](#eq? @_name "qq") (quasiquote_body) @string) + +(quasiquote + ((_ (variable) @_name)) (#eq? @_name "qq") + (quasiquote_body) @string) + ;; namespaced quasi-quoter (quasiquote (_