From 3a621b9a8362fac358d828254485024986d6d81b Mon Sep 17 00:00:00 2001 From: Manuel Barros Date: Wed, 30 Nov 2022 11:50:36 +0000 Subject: [PATCH] highlights(haskell): Fix partially applied infix functions --- queries/haskell/highlights.scm | 2 ++ 1 file changed, 2 insertions(+) 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))