blob: a1327bd4b43d9a2b226b93bd90c6dddff990386a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
; an injections.scm file for nvim-treesitter
((comment) @injection.content
(#set! injection.language "comment"))
((pod) @injection.content
(#set! injection.language "pod"))
((substitution_regexp
(replacement) @injection.content
(substitution_regexp_modifiers) @_modifiers)
; match if there's a single `e` in the modifiers list
(#lua-match? @_modifiers "e")
(#not-lua-match? @_modifiers "e.*e")
(#set! injection.language "perl")
(#set! injection.include-children))
(heredoc_content
(heredoc_end) @injection.language) @injection.content
(#set! injection.include-children)
|