mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 20:40:02 -04:00
fix: get_range shim for playground
This commit is contained in:
parent
cb568af539
commit
5c3e8dee64
3 changed files with 12 additions and 11 deletions
|
|
@ -14,7 +14,7 @@
|
|||
((function_call
|
||||
name: (_) @_vimcmd_identifier
|
||||
arguments: (arguments (string content: _ @query) .))
|
||||
(#any-of? @_vimcmd_identifier "vim.treesitter.query.set" "vim.treesitter.query.parse_query"))
|
||||
(#any-of? @_vimcmd_identifier "vim.treesitter.query.set" "vim.treesitter.query.parse_query" "vim.treesitter.query.parse"))
|
||||
|
||||
;; highlight string as query if starts with `;; query`
|
||||
((string ("string_content") @query) (#lua-match? @query "^%s*;+%s?query"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue