diff options
| author | Ananda Umamil <zweimach@zweimach.org> | 2022-01-14 03:22:51 +0700 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-13 21:48:35 +0100 |
| commit | a76e1eb89d57e25cedbc71d6bf8e2d2c23d5d85b (patch) | |
| tree | 2259d18de34c229375e768c3178123b8c8a594ef /queries/haskell | |
| parent | highlights(julia): add highlight for block comments (diff) | |
| download | nvim-treesitter-a76e1eb89d57e25cedbc71d6bf8e2d2c23d5d85b.tar nvim-treesitter-a76e1eb89d57e25cedbc71d6bf8e2d2c23d5d85b.tar.gz nvim-treesitter-a76e1eb89d57e25cedbc71d6bf8e2d2c23d5d85b.tar.bz2 nvim-treesitter-a76e1eb89d57e25cedbc71d6bf8e2d2c23d5d85b.tar.lz nvim-treesitter-a76e1eb89d57e25cedbc71d6bf8e2d2c23d5d85b.tar.xz nvim-treesitter-a76e1eb89d57e25cedbc71d6bf8e2d2c23d5d85b.tar.zst nvim-treesitter-a76e1eb89d57e25cedbc71d6bf8e2d2c23d5d85b.zip | |
highlights(haskell): function with type signature
Diffstat (limited to 'queries/haskell')
| -rw-r--r-- | queries/haskell/highlights.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/haskell/highlights.scm b/queries/haskell/highlights.scm index 4785b0deb..03744f5d6 100644 --- a/queries/haskell/highlights.scm +++ b/queries/haskell/highlights.scm @@ -110,6 +110,9 @@ (function name: (variable) @function patterns: (patterns)) +((signature (fun)) . (function (variable) @function)) +((signature (context (fun))) . (function (variable) @function)) +((signature (forall (context (fun)))) . (function (variable) @function)) (exp_infix (variable) @operator) ; consider infix functions as operators |
