From c6afb729b9f3dc0c9270acf9790a29b0d1df9b63 Mon Sep 17 00:00:00 2001 From: koalp Date: Thu, 13 Jan 2022 17:35:20 +0100 Subject: [PATCH] highlights(julia): add highlight for block comments --- queries/julia/highlights.scm | 7 +++++-- queries/julia/injections.scm | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/queries/julia/highlights.scm b/queries/julia/highlights.scm index c1295622a..c20a37b39 100644 --- a/queries/julia/highlights.scm +++ b/queries/julia/highlights.scm @@ -67,7 +67,7 @@ (identifier)) @symbol ;; Parsing error! foo (::Type) gets parsed as two quote expressions -(argument_list +(argument_list (quote_expression (quote_expression (identifier) @type))) @@ -123,7 +123,10 @@ (function_definition ["function" "end"] @keyword.function) -(comment) @comment +[ + (comment) + (block_comment) +] @comment [ "const" diff --git a/queries/julia/injections.scm b/queries/julia/injections.scm index be2412c06..77c503455 100644 --- a/queries/julia/injections.scm +++ b/queries/julia/injections.scm @@ -2,4 +2,7 @@ ; ((triple_string) @markdown ; (#offset! @markdown 0 3 0 -3)) -(comment) @comment +[ + (comment) + (block_comment) +] @comment