mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(editorconfig): add missing root validation (#23462)
This commit is contained in:
parent
39caf86e8a
commit
143a178332
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user