mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
fix(lua_inject): remove need for surrounding quote (#4740)
This commit is contained in:
parent
da79f9afe6
commit
25bdc313c7
1 changed files with 2 additions and 2 deletions
|
|
@ -19,9 +19,9 @@
|
|||
; vim.rcprequest(123, "nvim_exec_lua", "return vim.api.nvim_buf_get_lines(0, 0, -1, false)", false)
|
||||
((function_call
|
||||
name: (_) @_vimcmd_identifier
|
||||
arguments: (arguments . (_) . (string) @_method . (string content: _ @lua)))
|
||||
arguments: (arguments . (_) . (string content: _ @_method) . (string content: _ @lua)))
|
||||
(#any-of? @_vimcmd_identifier "vim.rpcrequest" "vim.rpcnotify")
|
||||
(#any-of? @_method "\"nvim_exec_lua\"" "'nvim_exec_lua'" "[[nvim_exec_lua]]"))
|
||||
(#eq? @_method "nvim_exec_lua"))
|
||||
|
||||
; highlight string as query if starts with `;; query`
|
||||
(string content: _ @query (#lua-match? @query "^%s*;+%s?query"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue