mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 06:20:01 -04:00
highlights(haskell): lambda and function with type signature
This commit is contained in:
parent
fb36ed4c9e
commit
e5dd204291
1 changed files with 6 additions and 3 deletions
|
|
@ -111,9 +111,12 @@
|
|||
(function
|
||||
name: (variable) @function
|
||||
patterns: (patterns))
|
||||
((signature (fun)) . (function (variable) @function))
|
||||
((signature (context (fun))) . (function (variable) @function))
|
||||
((signature (forall (context (fun)))) . (function (variable) @function))
|
||||
(function
|
||||
name: (variable) @function
|
||||
rhs: (exp_lambda))
|
||||
((signature (variable) @_type (fun)) . (function (variable) @function) (#eq? @function @_type))
|
||||
((signature (variable) @_type (context (fun))) . (function (variable) @function) (#eq? @function @_type))
|
||||
((signature (variable) @_type (forall (context (fun)))) . (function (variable) @function) (#eq? @function @_type))
|
||||
|
||||
(exp_infix (variable) @operator) ; consider infix functions as operators
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue