mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-22 21:30:06 -04:00
refactor(config): prefer vim.list.unique for normalization
Also fix some emmyluals warnings
This commit is contained in:
parent
4d9916e477
commit
37bcfdc6eb
3 changed files with 12 additions and 4 deletions
|
|
@ -52,7 +52,8 @@ local function find_delimiter(bufnr, node, delimiter)
|
|||
local end_char = { child:end_() }
|
||||
local trimmed_after_delim
|
||||
local escaped_delimiter = delimiter:gsub('[%-%.%+%[%]%(%)%$%^%%%?%*]', '%%%1')
|
||||
trimmed_after_delim = line:sub(end_char[2] + 1):gsub('[%s' .. escaped_delimiter .. ']*', '')
|
||||
trimmed_after_delim =
|
||||
assert(line):sub(end_char[2] + 1):gsub('[%s' .. escaped_delimiter .. ']*', '')
|
||||
return child, #trimmed_after_delim == 0
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue