mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -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
|
||||
local strip_captures = {}
|
||||
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 "@"'
|
||||
return
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue