aboutsummaryrefslogtreecommitdiffstats
path: root/queries/java
diff options
context:
space:
mode:
Diffstat (limited to 'queries/java')
-rw-r--r--queries/java/highlights.scm9
1 files changed, 9 insertions, 0 deletions
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 "^///$"))