mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
injections(lua): highlight string as query if starts with ;; query
This commit is contained in:
parent
e12416560e
commit
383d152783
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue