aboutsummaryrefslogtreecommitdiffstats
path: root/queries/julia/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/julia/highlights.scm')
-rw-r--r--queries/julia/highlights.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/queries/julia/highlights.scm b/queries/julia/highlights.scm
index 6988e69f5..789f8190c 100644
--- a/queries/julia/highlights.scm
+++ b/queries/julia/highlights.scm
@@ -281,6 +281,14 @@
"::"
] @punctuation.delimiter
+; Treat `::` as operator in type contexts, see
+; https://github.com/nvim-treesitter/nvim-treesitter/pull/7392
+(typed_expression
+ "::" @operator)
+
+(unary_typed_expression
+ "::" @operator)
+
[
"("
")"