mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
15
runtime/queries/perl/injections.scm
Normal file
15
runtime/queries/perl/injections.scm
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
; 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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue