mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 20:38:18 +00:00
fix(treesitter): avoid # of nil in _query_linter
This commit is contained in:

committed by
Lewis Russell

parent
576db141be
commit
32849d5667
@@ -92,7 +92,7 @@ local function get_error_entry(err, node)
|
|||||||
end_col = end_col + #underlined
|
end_col = end_col + #underlined
|
||||||
elseif msg:match('^Invalid') then
|
elseif msg:match('^Invalid') then
|
||||||
-- Use the length of the problematic type/capture/field
|
-- Use the length of the problematic type/capture/field
|
||||||
end_col = end_col + #msg:match('"([^"]+)"')
|
end_col = end_col + #(msg:match('"([^"]+)"') or '')
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user