branch: elpa/haskell-ts-mode
commit 81876a51920931710408e17b45ec8ac19206b318
Author: Pranshu Sharma <pran...@bauherren.ovh>
Commit: Pranshu Sharma <pran...@bauherren.ovh>

    Fixed up argument constructors
    
    the 'Compose' in
    f (Compose x) = x
    not gets highlighted properly.
---
 haskell-ts-mode.el | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el
index 659d8b780d..24731fdcbe 100644
--- a/haskell-ts-mode.el
+++ b/haskell-ts-mode.el
@@ -5,7 +5,7 @@
 ;; Author: Pranshu Sharma <pran...@bauherren.ovh>
 ;; URL: https://codeberg.org/pranshu/haskell-ts-mode
 ;; Package-Requires: ((emacs "29.3"))
-;; Version: 1.1.4
+;; Version: 1.2.0
 ;; Keywords: languages, haskell
 
 ;; This program is free software; you can redistribute it and/or modify
@@ -172,12 +172,10 @@ when `haskell-ts-prettify-words' is non-nil.")
    :language 'haskell
    :feature 'constructors
    :override t
-   '((data_constructor
-      (prefix (constructor) @haskell-constructor-face
-             field: (_) @haskell-constructor-face))
-     (newtype_constructor
-      (constructor) @haskell-constructor-face
-      field: (_) @haskell-constructor-face)
+   '((constructor) @haskell-constructor-face
+     (data_constructor
+      (prefix field: (_) @haskell-constructor-face))
+     (newtype_constructor field: (_) @haskell-constructor-face)
      (declarations (type_synomym (name) @font-lock-type-face))
      (declarations (data_type name: (name) @font-lock-type-face))
      (declarations (newtype name: (name) @font-lock-type-face))

Reply via email to