From 29bfb18a0de9a64f46d59418e434fca09ea6a8f0 Mon Sep 17 00:00:00 2001 From: joker1007 Date: Fri, 14 Nov 2025 05:16:09 +0900 Subject: [PATCH] feat(ruby): add injection pattern to support rbs-inline style --- runtime/queries/ruby/injections.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/runtime/queries/ruby/injections.scm b/runtime/queries/ruby/injections.scm index e998e2bd7..2f75c846a 100644 --- a/runtime/queries/ruby/injections.scm +++ b/runtime/queries/ruby/injections.scm @@ -1,6 +1,18 @@ ((comment) @injection.content (#set! injection.language "comment")) +((comment) @injection.content + (#lua-match? @injection.content "^#:") + (#set! injection.language "rbs")) + +((comment) @injection.content + (#lua-match? @injection.content "^#%s+@rbs") + (#set! injection.language "rbs")) + +((comment) @injection.content + (#lua-match? @injection.content "^#%s+|") + (#set! injection.language "rbs")) + (heredoc_body (heredoc_content) @injection.content (heredoc_end) @injection.language)