aboutsummaryrefslogtreecommitdiffstats
path: root/queries/haskell
diff options
context:
space:
mode:
authorMarc Jakobi <marc.jakobi@tiko.energy>2023-12-15 00:05:27 +0100
committerChristian Clason <c.clason@uni-graz.at>2023-12-20 13:07:44 +0100
commit96e01877b82760a1852344f6ffd3a51bd6d36c0e (patch)
treefa8295463418bdbc969c3a4dc52a10f0ea2745c8 /queries/haskell
parentUpdate parsers: gleam, styled, v, wing (diff)
downloadnvim-treesitter-96e01877b82760a1852344f6ffd3a51bd6d36c0e.tar
nvim-treesitter-96e01877b82760a1852344f6ffd3a51bd6d36c0e.tar.gz
nvim-treesitter-96e01877b82760a1852344f6ffd3a51bd6d36c0e.tar.bz2
nvim-treesitter-96e01877b82760a1852344f6ffd3a51bd6d36c0e.tar.lz
nvim-treesitter-96e01877b82760a1852344f6ffd3a51bd6d36c0e.tar.xz
nvim-treesitter-96e01877b82760a1852344f6ffd3a51bd6d36c0e.tar.zst
nvim-treesitter-96e01877b82760a1852344f6ffd3a51bd6d36c0e.zip
highlights(haskell): namespaced string quasiquote
Diffstat (limited to 'queries/haskell')
-rw-r--r--queries/haskell/highlights.scm10
1 files changed, 9 insertions, 1 deletions
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
(_