nvim-treesitter/runtime/queries/ruby/injections.scm
Christian Clason f13420ccff fix: remove upstreamed directives
`#inject-lang!` and `#trim!`; fix `set-lang-from-mimetype`
2025-05-12 18:43:40 +02:00

22 lines
547 B
Scheme

((comment) @injection.content
(#set! injection.language "comment"))
(heredoc_body
(heredoc_content) @injection.content
(heredoc_end) @injection.language)
(regex
(string_content) @injection.content
(#set! injection.language "regex"))
((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))