From 78b54eb7f6a9956d25a3911fa0dfd0cabfe2a4c5 Mon Sep 17 00:00:00 2001 From: Pham Huy Hoang Date: Wed, 3 May 2023 19:07:59 +0900 Subject: chore(injections)!: update injection syntax to 0.9 Since 0.9, @lang syntax is still available as fallback but will soon be deprecated. Because of that, new syntax should be adopted once 0.9 becomes the baseline requirements for nvim-treesitter - update health check - update doc --- queries/ruby/injections.scm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'queries/ruby') diff --git a/queries/ruby/injections.scm b/queries/ruby/injections.scm index 8e2456b39..6981808c5 100644 --- a/queries/ruby/injections.scm +++ b/queries/ruby/injections.scm @@ -1,9 +1,12 @@ -(comment) @comment +((comment) @injection.content + (#set! injection.language "comment")) (heredoc_body - (heredoc_content) @content - (heredoc_end) @language - (#set! "language" @language) + (heredoc_content) @injection.content + (heredoc_end) @injection.language + (#set! "language" @injection.language) (#downcase! "language")) -(regex (string_content) @regex) +(regex + (string_content) @injection.content + (#set! injection.language "regex")) -- cgit v1.2.3-70-g09d2