mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07: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
|
||||
elseif key ~= nil and val ~= nil then
|
||||
if key == 'root' then
|
||||
assert(val == 'true' or val == 'false', 'root must be either "true" or "false"')
|
||||
opts.root = val == 'true'
|
||||
elseif pat and pat:match_str(filepath) then
|
||||
opts[key] = val
|
||||
|
Loading…
Reference in New Issue
Block a user