mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
chore: placate luacheck
This commit is contained in:
parent
25bd02121b
commit
a838a35b2b
1 changed files with 1 additions and 1 deletions
|
|
@ -262,7 +262,7 @@ function M.get_capture_matches(bufnr, captures, query_group, root, lang)
|
||||||
end
|
end
|
||||||
local strip_captures = {}
|
local strip_captures = {}
|
||||||
for i, capture in ipairs(captures) do
|
for i, capture in ipairs(captures) do
|
||||||
if not capture:sub(1, 1) == "@" then
|
if capture:sub(1, 1) ~= "@" then
|
||||||
error 'Captures must start with "@"'
|
error 'Captures must start with "@"'
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue