From ab3bf7d95615098f47596ab245282c03149195e7 Mon Sep 17 00:00:00 2001 From: Domas Poliakas Date: Tue, 6 Jun 2023 16:36:09 +0200 Subject: [PATCH] fix(scala): add `block_comment` --- queries/scala/highlights.scm | 7 +++++-- queries/scala/injections.scm | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/queries/scala/highlights.scm b/queries/scala/highlights.scm index 64f49f8f6..f62e88c5d 100644 --- a/queries/scala/highlights.scm +++ b/queries/scala/highlights.scm @@ -232,9 +232,12 @@ "return" @keyword.return -(comment) @comment @spell +[ + (comment) + (block_comment) +] @comment @spell -((comment) @comment.documentation +((block_comment) @comment.documentation (#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$")) ;; `case` is a conditional keyword in case_block diff --git a/queries/scala/injections.scm b/queries/scala/injections.scm index 4bb7d675d..521ca7a67 100644 --- a/queries/scala/injections.scm +++ b/queries/scala/injections.scm @@ -1 +1,4 @@ -(comment) @comment +[ + (comment) + (block_comment) +] @comment