nvim-treesitter/queries/ruby/injections.scm

13 lines
310 B
Scheme
Raw Normal View History

((comment) @injection.content
(#set! injection.language "comment"))
(heredoc_body
(heredoc_content) @injection.content
(heredoc_end) @injection.language
(#set! "language" @injection.language)
(#downcase! "language"))
2022-11-26 14:27:21 +02:00
(regex
(string_content) @injection.content
(#set! injection.language "regex"))