mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -04:00
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:
parent
5a7e5638e7
commit
2999f02ce8
1 changed files with 4 additions and 2 deletions
|
|
@ -226,7 +226,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
|
||||||
|
|
@ -245,7 +247,7 @@
|
||||||
(function
|
(function
|
||||||
(infix
|
(infix
|
||||||
left_operand: [
|
left_operand: [
|
||||||
(variable) @variable
|
(variable) @variable.parameter
|
||||||
(qualified
|
(qualified
|
||||||
((module) @module
|
((module) @module
|
||||||
(variable) @variable))
|
(variable) @variable))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue