feat(ruby): update queries to support rbs-inline syntax (#8282)

This commit is contained in:
Tomohiro Hashidate 2025-11-15 00:04:54 +09:00 committed by GitHub
parent 2144e88dac
commit 2696fb8326
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 38 additions and 1 deletions

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)