mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(query): pattern injections for new predicates
This commit is contained in:
parent
1b2f006703
commit
707b0dcf76
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
name: (identifier) @_name
|
||||
parameters: (parameters
|
||||
(string) @injection.content))
|
||||
(#any-of? @_name "match" "not-match" "vim-match" "not-vim-match")
|
||||
(#any-of? @_name "match" "not-match" "any-match" "vim-match" "not-vim-match" "any-vim-match")
|
||||
(#set! injection.language "regex")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
name: (identifier) @_name
|
||||
parameters: (parameters
|
||||
(string) @injection.content))
|
||||
(#any-of? @_name "lua-match" "not-lua-match")
|
||||
(#any-of? @_name "lua-match" "not-lua-match" "any-lua-match")
|
||||
(#set! injection.language "luap")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue