aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorAbbath <pitongogi@gmail.com>2026-01-14 11:16:45 +0100
committerChristian Clason <ch.clason+github@icloud.com>2026-01-15 09:19:05 +0100
commit15b3416cc1f557c4932468e512a0bd45871167bc (patch)
tree701ee71c55593ced04ce04e053468b8f5e18e269 /runtime
parentfix(haskell): syntax highlighting for Haskell lambda expressions (diff)
downloadnvim-treesitter-15b3416cc1f557c4932468e512a0bd45871167bc.tar
nvim-treesitter-15b3416cc1f557c4932468e512a0bd45871167bc.tar.gz
nvim-treesitter-15b3416cc1f557c4932468e512a0bd45871167bc.tar.bz2
nvim-treesitter-15b3416cc1f557c4932468e512a0bd45871167bc.tar.lz
nvim-treesitter-15b3416cc1f557c4932468e512a0bd45871167bc.tar.xz
nvim-treesitter-15b3416cc1f557c4932468e512a0bd45871167bc.tar.zst
nvim-treesitter-15b3416cc1f557c4932468e512a0bd45871167bc.zip
fix(haskell): highlighting for operator definition and operator-like constructors.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/haskell/highlights.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/queries/haskell/highlights.scm b/runtime/queries/haskell/highlights.scm
index 8e9f1b3c3..9d043b49d 100644
--- a/runtime/queries/haskell/highlights.scm
+++ b/runtime/queries/haskell/highlights.scm
@@ -227,7 +227,9 @@
(qualified
((module) @module
(variable) @function.call))
- ])
+ ]
+ (operator) @_op
+ (#match? @_op "^[^:].*"))
; infix operators applied to variables
((expression/variable) @variable
@@ -246,7 +248,7 @@
(function
(infix
left_operand: [
- (variable) @variable
+ (variable) @variable.parameter
(qualified
((module) @module
(variable) @variable))