feat(ruby): add injection pattern to support rbs-inline style

This commit is contained in:
joker1007 2025-11-14 05:16:09 +09:00
parent c38b8ba6b9
commit 29bfb18a0d
No known key found for this signature in database
GPG key ID: 69BAF8CC17ECB7B3

View file

@ -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)