From 4cc1b342f6b240e7309e940072f548325566e999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Buga=C5=82a?= Date: Fri, 7 Jul 2023 08:58:44 +0200 Subject: [PATCH] feat(groovy): update highlights from upstream (#5076) Groovydoc multiline comment support. --- lockfile.json | 2 +- queries/groovy/highlights.scm | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lockfile.json b/lockfile.json index 25338025b..c6dde55d1 100644 --- a/lockfile.json +++ b/lockfile.json @@ -192,7 +192,7 @@ "revision": "5e66e961eee421786bdda8495ed1db045e06b5fe" }, "groovy": { - "revision": "7ebfaf33a0f68f9283be17903ebecfdac05a1f3b" + "revision": "54c7da8b167261e76c79513c0364a01836093526" }, "hack": { "revision": "95e63e79e0d9f91000bd11d458997fabed1bb1e2" diff --git a/queries/groovy/highlights.scm b/queries/groovy/highlights.scm index 2f9f541b8..25dc21086 100644 --- a/queries/groovy/highlights.scm +++ b/queries/groovy/highlights.scm @@ -43,7 +43,19 @@ (string) @string -(comment) @comment +[ + (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 "^///$")) (operators) @operator (leading_key) @operator