mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -04:00
refactor: replace some match & vim-match usages
This commit is contained in:
parent
9ea7559ea9
commit
05fe2c38a3
7 changed files with 15 additions and 18 deletions
|
|
@ -1,14 +1,14 @@
|
|||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters (string) @injection.content))
|
||||
(#match? @_name "^#?(not-)?(match|vim-match)$")
|
||||
(#any-of? @_name "match" "not-match" "vim-match" "not-vim-match")
|
||||
(#set! injection.language "regex")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
|
||||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters (string) @injection.content))
|
||||
(#match? @_name "^#?(not-)?lua-match$")
|
||||
(#any-of? @_name "lua-match" "not-lua-match")
|
||||
(#set! injection.language "luap")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue