Skip to content

Commit

Permalink
fix: supply empty opts table to iter_matches (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
benlubas committed Apr 14, 2024
1 parent 7d97cab commit fb59bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/remove_comments.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ M.remove_comments = function(str, lang)
-- split content lines
local lines = vim.split(str, '\n')
-- iterate over query match metadata
for _, _, metadata in query:iter_matches(root, str, root:start(), root:end_()) do
for _, _, metadata in query:iter_matches(root, str, root:start(), root:end_(), {}) do
local region = metadata[1].range
local line = region[1] + 1
local col_start = region[2]
Expand Down

0 comments on commit fb59bea

Please sign in to comment.