mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -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
|
||||
((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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue