fix(haskell): highlighting for operator definition and operator-like constructors.

This commit is contained in:
Abbath 2026-01-14 11:16:45 +01:00 committed by Christian Clason
parent c872ec85cc
commit 15b3416cc1

View file

@ -227,7 +227,9 @@
(qualified (qualified
((module) @module ((module) @module
(variable) @function.call)) (variable) @function.call))
]) ]
(operator) @_op
(#match? @_op "^[^:].*"))
; infix operators applied to variables ; infix operators applied to variables
((expression/variable) @variable ((expression/variable) @variable
@ -246,7 +248,7 @@
(function (function
(infix (infix
left_operand: [ left_operand: [
(variable) @variable (variable) @variable.parameter
(qualified (qualified
((module) @module ((module) @module
(variable) @variable)) (variable) @variable))