diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-03-26 10:13:57 +0100 |
|---|---|---|
| committer | Christian Clason <christian.clason@uni-due.de> | 2022-03-26 10:20:26 +0100 |
| commit | a838a35b2b5514cc341edfe398dc5036df554ac4 (patch) | |
| tree | cbc0c966fd31982146cb9f91bdf76c93b7e4cdc0 /lua/nvim-treesitter | |
| parent | 25bd02121b044418d45e77898024b57a93e69805 (diff) | |
chore: placate luacheck
Diffstat (limited to 'lua/nvim-treesitter')
| -rw-r--r-- | lua/nvim-treesitter/query.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua index 7009e9f2..bad1c27e 100644 --- a/lua/nvim-treesitter/query.lua +++ b/lua/nvim-treesitter/query.lua @@ -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 |
