mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat(perl)!: switch to tree-sitter-perl org's parser
This commit is contained in:
parent
7c67a1a923
commit
bb3f8f40b1
5 changed files with 156 additions and 187 deletions
|
|
@ -1,2 +1,14 @@
|
|||
((comments) @injection.content
|
||||
; 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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue