From 2999f02ce89b8d27f7639c3dd094a100dbc0d88a Mon Sep 17 00:00:00 2001 From: Abbath Date: Wed, 14 Jan 2026 11:05:38 +0100 Subject: [PATCH] fix(haskell): highlighting for operator and parameter handling Fixes the highlighting of the left operand of operator declarations and the first argument for operator constructors (:, :%, :+). --- runtime/queries/haskell/highlights.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/queries/haskell/highlights.scm b/runtime/queries/haskell/highlights.scm index de0eaf0a1..955551f29 100644 --- a/runtime/queries/haskell/highlights.scm +++ b/runtime/queries/haskell/highlights.scm @@ -226,7 +226,9 @@ (qualified ((module) @module (variable) @function.call)) - ]) + ] + (operator) @_op + (#match? @_op "^[^:].*")) ; infix operators applied to variables ((expression/variable) @variable @@ -245,7 +247,7 @@ (function (infix left_operand: [ - (variable) @variable + (variable) @variable.parameter (qualified ((module) @module (variable) @variable))