2024-01-06 15:05:50 +09:00
|
|
|
((comment) @injection.content
|
|
|
|
|
(#set! injection.language "comment"))
|
2021-04-15 15:48:48 -02:30
|
|
|
|
2025-11-15 00:04:54 +09:00
|
|
|
((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"))
|
|
|
|
|
|
2021-04-15 15:48:48 -02:30
|
|
|
(heredoc_body
|
2024-01-06 15:05:50 +09:00
|
|
|
(heredoc_content) @injection.content
|
2023-06-24 14:33:45 +02:00
|
|
|
(heredoc_end) @injection.language)
|
2022-11-26 14:27:21 +02:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(regex
|
|
|
|
|
(string_content) @injection.content
|
2023-05-03 19:07:59 +09:00
|
|
|
(#set! injection.language "regex"))
|
2024-12-30 05:14:03 -05:00
|
|
|
|
|
|
|
|
((call
|
|
|
|
|
receiver: (identifier) @_receiver
|
|
|
|
|
method: (identifier) @_method
|
|
|
|
|
arguments: (argument_list
|
|
|
|
|
(pair
|
|
|
|
|
key: (hash_key_symbol)
|
|
|
|
|
value: (string
|
|
|
|
|
(string_content) @injection.content))))
|
|
|
|
|
(#eq? @_receiver "binding")
|
|
|
|
|
(#any-of? @_method "b" "break")
|
|
|
|
|
(#set! injection.self))
|