2023-10-17 19:32:09 +00:00
|
|
|
; an injections.scm file for nvim-treesitter
|
|
|
|
|
((comment) @injection.content
|
2024-01-06 15:05:50 +09:00
|
|
|
(#set! injection.language "comment"))
|
|
|
|
|
|
2023-10-17 19:32:09 +00:00
|
|
|
((pod) @injection.content
|
2024-01-06 15:05:50 +09:00
|
|
|
(#set! injection.language "pod"))
|
2023-10-17 19:32:09 +00:00
|
|
|
|
|
|
|
|
((substitution_regexp
|
|
|
|
|
(replacement) @injection.content
|
|
|
|
|
(substitution_regexp_modifiers) @_modifiers)
|
2024-01-06 15:05:50 +09:00
|
|
|
; match if there's a single `e` in the modifiers list
|
2023-10-17 19:32:09 +00:00
|
|
|
(#lua-match? @_modifiers "e")
|
|
|
|
|
(#not-lua-match? @_modifiers "e.*e")
|
2025-03-19 10:48:48 +02:00
|
|
|
(#set! injection.language "perl")
|
|
|
|
|
(#set! injection.include-children))
|
2025-10-17 10:06:14 -04:00
|
|
|
|
|
|
|
|
(heredoc_content
|
|
|
|
|
(heredoc_end) @injection.language) @injection.content
|