injections(lua): highlight string as query if starts with ;; query

This commit is contained in:
numToStr 2022-08-20 13:33:45 +05:30 committed by Stephan Seitz
parent e12416560e
commit 383d152783

View file

@ -16,4 +16,7 @@
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"))
(comment) @comment