mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
fix(treesitter): avoid # of nil in _query_linter
This commit is contained in:
parent
576db141be
commit
32849d5667
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user