mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
feat(treesitter): bundle query parser and queries (#22483)
skip injections for now
This commit is contained in:
@@ -11,10 +11,10 @@
|
||||
arguments: (arguments (string content: _ @vim)))
|
||||
(#any-of? @_vimcmd_identifier "vim.cmd" "vim.api.nvim_command" "vim.api.nvim_exec" "vim.api.nvim_cmd"))
|
||||
|
||||
; ((function_call
|
||||
; name: (_) @_vimcmd_identifier
|
||||
; arguments: (arguments (string content: _ @query) .))
|
||||
; (#eq? @_vimcmd_identifier "vim.treesitter.query.set_query"))
|
||||
((function_call
|
||||
name: (_) @_vimcmd_identifier
|
||||
arguments: (arguments (string content: _ @query) .))
|
||||
(#eq? @_vimcmd_identifier "vim.treesitter.query.set_query"))
|
||||
|
||||
; ;; highlight string as query if starts with `;; query`
|
||||
; ((string ("string_content") @query) (#lua-match? @query "^%s*;+%s?query"))
|
||||
|
||||
Reference in New Issue
Block a user