mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
Inject query into lua for set_query calls
This commit is contained in:
parent
99625b59b5
commit
ab372a88ef
1 changed files with 5 additions and 0 deletions
|
|
@ -11,4 +11,9 @@
|
||||||
arguments: (arguments (string content: _ @vim)))
|
arguments: (arguments (string content: _ @vim)))
|
||||||
(#any-of? @_vimcmd_identifier "vim.cmd" "vim.api.nvim_command" "vim.api.nvim_exec"))
|
(#any-of? @_vimcmd_identifier "vim.cmd" "vim.api.nvim_command" "vim.api.nvim_exec"))
|
||||||
|
|
||||||
|
((function_call
|
||||||
|
name: (_) @_vimcmd_identifier
|
||||||
|
arguments: (arguments (string content: _ @query) .))
|
||||||
|
(#eq? @_vimcmd_identifier "vim.treesitter.query.set_query"))
|
||||||
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue