Extend injections for Lua to use query parser

This commit is contained in:
Cameron 2023-02-23 22:15:56 +01:00 committed by ObserverOfTime
parent f8595b13bf
commit 1e8ad621a5

View file

@ -14,7 +14,7 @@
((function_call
name: (_) @_vimcmd_identifier
arguments: (arguments (string content: _ @query) .))
(#eq? @_vimcmd_identifier "vim.treesitter.query.set_query"))
(#any-of? @_vimcmd_identifier "vim.treesitter.query.set_query" "vim.treesitter.query.parse_query"))
;; highlight string as query if starts with `;; query`
((string ("string_content") @query) (#lua-match? @query "^%s*;+%s?query"))