aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorAnanda Umamil <zweimach@zweimach.org>2023-01-06 04:01:27 +0700
committerStephan Seitz <stephan.seitz@fau.de>2023-01-11 20:07:16 +0100
commit1298d9ba3ba78cf6bba3810e47e5d2d568f33614 (patch)
tree1c9e482380bed532ccde595bf24d88ff71be572e /queries
parentUpdate parsers: scala (diff)
downloadnvim-treesitter-1298d9ba3ba78cf6bba3810e47e5d2d568f33614.tar
nvim-treesitter-1298d9ba3ba78cf6bba3810e47e5d2d568f33614.tar.gz
nvim-treesitter-1298d9ba3ba78cf6bba3810e47e5d2d568f33614.tar.bz2
nvim-treesitter-1298d9ba3ba78cf6bba3810e47e5d2d568f33614.tar.lz
nvim-treesitter-1298d9ba3ba78cf6bba3810e47e5d2d568f33614.tar.xz
nvim-treesitter-1298d9ba3ba78cf6bba3810e47e5d2d568f33614.tar.zst
nvim-treesitter-1298d9ba3ba78cf6bba3810e47e5d2d568f33614.zip
highlights(haskell): function and variable bindings
Diffstat (limited to 'queries')
-rw-r--r--queries/haskell/highlights.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/haskell/highlights.scm b/queries/haskell/highlights.scm
index f89375664..f3cae5e50 100644
--- a/queries/haskell/highlights.scm
+++ b/queries/haskell/highlights.scm
@@ -106,16 +106,19 @@
(variable) @variable
(pat_wildcard) @variable
+(signature name: (variable) @variable)
-(signature name: (variable) @type)
(function
name: (variable) @function
patterns: (patterns))
(function
name: (variable) @function
rhs: (exp_lambda))
+((signature (variable) @function (fun)) . (function (variable)))
((signature (variable) @_type (fun)) . (function (variable) @function) (#eq? @function @_type))
+((signature (variable) @function (context (fun))) . (function (variable)))
((signature (variable) @_type (context (fun))) . (function (variable) @function) (#eq? @function @_type))
+((signature (variable) @function (forall (context (fun)))) . (function (variable)))
((signature (variable) @_type (forall (context (fun)))) . (function (variable) @function) (#eq? @function @_type))
(exp_infix (variable) @operator) ; consider infix functions as operators