branch: elpa/haskell-ts-mode
commit d4d4c9e279732e1b98e0be683c21971f033e7efb
Author: Pranshu Sharma <[email protected]>
Commit: Pranshu Sharma <[email protected]>

    Fixed signature highglighting
    
    the last type in signature wasn't being highlighted properly, fixed now
---
 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 d8e2022921b..6ac67fd362c 100644
--- a/haskell-ts-mode.el
+++ b/haskell-ts-mode.el
@@ -143,9 +143,12 @@ when `haskell-ts-prettify-words' is non-nil.")
    :override t
    `(((match (guards guard: (boolean (variable) @font-lock-keyword-face)))
       (:match "otherwise" @font-lock-keyword-face)))
+   
+   :language 'haskell
+   :feature 'type
+   :override t
+   '((type) @font-lock-type-face)
 
-   ;; This needs to be positioned above where we apply
-   ;; font-lock-operator-face to comma
    :language 'haskell
    :override t
    :feature 'signature
@@ -174,11 +177,6 @@ when `haskell-ts-prettify-words' is non-nil.")
      (generator :anchor (_) @haskell-ts--fontify-arg)
      (patterns) @haskell-ts--fontify-arg)
 
-   :language 'haskell
-   :feature 'type
-   :override t
-   '((type) @font-lock-type-face)
-
    :language 'haskell
    :feature 'constructors
    :override t

Reply via email to