mirror of
https://github.com/neovim/neovim
synced 2025-07-17 01:31:48 +00:00
fix(editorconfig): add missing root validation (#23462)
This commit is contained in:
@ -189,6 +189,7 @@ local function parse(filepath, dir)
|
|||||||
end
|
end
|
||||||
elseif key ~= nil and val ~= nil then
|
elseif key ~= nil and val ~= nil then
|
||||||
if key == 'root' then
|
if key == 'root' then
|
||||||
|
assert(val == 'true' or val == 'false', 'root must be either "true" or "false"')
|
||||||
opts.root = val == 'true'
|
opts.root = val == 'true'
|
||||||
elseif pat and pat:match_str(filepath) then
|
elseif pat and pat:match_str(filepath) then
|
||||||
opts[key] = val
|
opts[key] = val
|
||||||
|
Reference in New Issue
Block a user