aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/groovy/injections.scm
diff options
context:
space:
mode:
authorBenedikt Ritter2024-03-17 23:01:11 +0000
committerGitHub2024-03-17 23:01:11 +0000
commitf7913c1a3bc7609c9c1d6eaa0fbd0e3dda18be63 (patch)
tree52a1021c5fd19c4f397819e009b7782abdccd806 /runtime/queries/groovy/injections.scm
parent8457652da139320fba7128e02fbd19fcf09ea235 (diff)
Extend groovy support (#9677)
* Extend groovy support Use more complete parser introduced in nvm-treesitter in https://github.com/nvim-treesitter/nvim-treesitter/commit/d4dac523d2546afc266eb9b5a7986690b5319c41 * Update runtime/queries/groovy/locals.scm Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Drop indent.scm for groovy It was copied from the tree-sitter repository but is not compatiblw with the way indent queries are implemented in Helix. * Adapt groovy highlights to helix syntax * Update documentation --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'runtime/queries/groovy/injections.scm')
-rw-r--r--runtime/queries/groovy/injections.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/queries/groovy/injections.scm b/runtime/queries/groovy/injections.scm
index e4509a5f..1c04c65f 100644
--- a/runtime/queries/groovy/injections.scm
+++ b/runtime/queries/groovy/injections.scm
@@ -1,2 +1,5 @@
-([(line_comment) (block_comment)] @injection.content
- (#set! injection.language "comment"))
+((comment) @injection.content
+ (#set! injection.language "comment"))
+
+((groovy_doc) @injection.content
+ (#set! injection.language "comment"))