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 (:, :%, :+).
This commit is contained in:
Abbath 2026-01-14 11:05:38 +01:00 committed by GitHub
parent 5a7e5638e7
commit 2999f02ce8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))