mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
Query: add regex injections
This commit is contained in:
parent
e5319aa9aa
commit
51d70c9f0c
1 changed files with 4 additions and 0 deletions
4
queries/query/injections.scm
Normal file
4
queries/query/injections.scm
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
((predicate
|
||||||
|
name: (identifier) @_name
|
||||||
|
parameters: (parameters (string) @regex))
|
||||||
|
(#match? @_name "^#?(not-)?(match|vim-match|lua-match)$"))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue