mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(haskell): highlighting for operator definition and operator-like constructors.
This commit is contained in:
parent
c872ec85cc
commit
15b3416cc1
1 changed files with 4 additions and 2 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue