fix(treesitter): avoid # of nil in _query_linter

This commit is contained in:
Daniel Kongsgaard authored and Lewis Russell committed 2024-01-24 11:03:54 +00:00
1 parent 576db141be
commit 32849d5667
1 file changed
+1 -1
+1 -1
View File
@@ -92,7 +92,7 @@ local function get_error_entry(err, node)
end_col = end_col + #underlined
elseif msg:match('^Invalid') then
-- Use the length of the problematic type/capture/field
end_col = end_col + #msg:match('"([^"]+)"')
end_col = end_col + #(msg:match('"([^"]+)"') or '')
end
return {