aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authorManuel Barros <manuelqmbarros@gmail.com>2022-11-30 11:50:36 +0000
committerStephan Seitz <stephan.seitz@fau.de>2023-01-01 18:23:57 +0100
commit3a621b9a8362fac358d828254485024986d6d81b (patch)
tree166c5d52e34858cd2e71b67198d2bb133f4b8be0 /queries
parentUpdate parsers: latex (#4072) (diff)
downloadnvim-treesitter-3a621b9a8362fac358d828254485024986d6d81b.tar
nvim-treesitter-3a621b9a8362fac358d828254485024986d6d81b.tar.gz
nvim-treesitter-3a621b9a8362fac358d828254485024986d6d81b.tar.bz2
nvim-treesitter-3a621b9a8362fac358d828254485024986d6d81b.tar.lz
nvim-treesitter-3a621b9a8362fac358d828254485024986d6d81b.tar.xz
nvim-treesitter-3a621b9a8362fac358d828254485024986d6d81b.tar.zst
nvim-treesitter-3a621b9a8362fac358d828254485024986d6d81b.zip
highlights(haskell): Fix partially applied infix functions
Diffstat (limited to 'queries')
-rw-r--r--queries/haskell/highlights.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/queries/haskell/highlights.scm b/queries/haskell/highlights.scm
index 297a410da..f89375664 100644
--- a/queries/haskell/highlights.scm
+++ b/queries/haskell/highlights.scm
@@ -119,6 +119,8 @@
((signature (variable) @_type (forall (context (fun)))) . (function (variable) @function) (#eq? @function @_type))
(exp_infix (variable) @operator) ; consider infix functions as operators
+(exp_section_right (variable) @operator) ; partially applied infix functions (sections) also get highlighted as operators
+(exp_section_left (variable) @operator)
(exp_infix (exp_name) @function.call (#set! "priority" 101))
(exp_apply . (exp_name (variable) @function.call))