From 5a87bc98dabd0d38152a6fa774005f7ecbd40f1b Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Thu, 2 Mar 2023 08:06:35 -0500 Subject: feat: add `@comment.documentation` where applicable --- queries/java/highlights.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'queries/java') diff --git a/queries/java/highlights.scm b/queries/java/highlights.scm index 717a13bad..c97242295 100644 --- a/queries/java/highlights.scm +++ b/queries/java/highlights.scm @@ -279,3 +279,12 @@ (line_comment) (block_comment) ] @comment @spell + +((block_comment) @comment.documentation + (#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$")) + +((line_comment) @comment.documentation + (#lua-match? @comment.documentation "^///[^/]")) + +((line_comment) @comment.documentation + (#lua-match? @comment.documentation "^///$")) -- cgit v1.2.3-70-g09d2