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

    Adding more syntax highlihgitng
    
    should deal with lots of 
https://codeberg.org/pranshu/haskell-ts-mode/issues/16#issuecomment-4057751
---
 haskell-ts-mode.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el
index 185ce10c2e..279e45a14a 100644
--- a/haskell-ts-mode.el
+++ b/haskell-ts-mode.el
@@ -150,7 +150,7 @@ when `haskell-ts-prettify-words' is non-nil.")
 
    :language 'haskell
    :feature 'import
-   '((import ["qualified" "as"] @font-lock-keyword-face))
+   '((import ["qualified" "as" "hiding"] @font-lock-keyword-face))
 
    :language 'haskell
    :feature 'type-sig
@@ -171,7 +171,8 @@ when `haskell-ts-prettify-words' is non-nil.")
      (constructor) @font-lock-type-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)))
+     (declarations (newtype name: (name) @font-lock-type-face))
+     (deriving "deriving" @font-lock-keyword-face (name) @font-lock-type-face))
 
    :language 'haskell
    :feature 'match

Reply via email to