fix: get_range shim for playground

This commit is contained in:
Tom van Dijk 2023-03-24 22:44:28 +01:00 committed by Lewis Russell
parent cb568af539
commit 5c3e8dee64
3 changed files with 12 additions and 11 deletions

View file

@ -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"))