From f3fb301b267e85e4cbc725561da4a82b1c3089c8 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Sun, 24 Sep 2023 20:51:16 +0200 Subject: feat(highlights): some haskell improvements --- queries/haskell/highlights.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'queries/haskell') diff --git a/queries/haskell/highlights.scm b/queries/haskell/highlights.scm index 01fecb43e..18038e079 100644 --- a/queries/haskell/highlights.scm +++ b/queries/haskell/highlights.scm @@ -77,7 +77,10 @@ "@" ] @operator -(module) @namespace +(qualified_module (module) @constructor) +(qualified_type (module) @namespace) +(qualified_variable (module) @namespace) +(import (module) @namespace) [ (where) @@ -133,6 +136,8 @@ (exp_apply . (exp_name (variable) @function.call)) (exp_apply . (exp_name (qualified_variable (variable) @function.call))) +("@" @namespace) ; "as" pattern operator, e.g. x@Constructor + ;; ---------------------------------------------------------------------------- ;; Types -- cgit v1.2.3-70-g09d2