aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/haskell/highlights.scm7
1 files changed, 6 insertions, 1 deletions
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