mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
ci: fix check for valid capture
Arguments to vim.startswith where swapped. Prefix has to go second.
This commit is contained in:
parent
faf78ce12a
commit
c8afa9fd3f
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ local function do_check()
|
||||||
local is_valid = (
|
local is_valid = (
|
||||||
vim.startswith(capture, "_") -- Helpers.
|
vim.startswith(capture, "_") -- Helpers.
|
||||||
or list_any(captures[query_type], function(documented_capture)
|
or list_any(captures[query_type], function(documented_capture)
|
||||||
return vim.startswith(documented_capture, capture)
|
return vim.startswith(capture, documented_capture)
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
if not is_valid then
|
if not is_valid then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue