aboutsummaryrefslogtreecommitdiffstats
path: root/queries/groovy/injections.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/groovy/injections.scm')
-rw-r--r--queries/groovy/injections.scm9
1 files changed, 5 insertions, 4 deletions
diff --git a/queries/groovy/injections.scm b/queries/groovy/injections.scm
index 0a63c9bfe..0f3127b6b 100644
--- a/queries/groovy/injections.scm
+++ b/queries/groovy/injections.scm
@@ -1,4 +1,5 @@
-[
- (block_comment)
- (line_comment)
-] @comment
+((line_comment) @injection.content
+ (#set! injection.language "comment"))
+
+((block_comment) @injection.content
+ (#set! injection.language "comment"))