mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
fix(editorconfig): add missing root validation
(cherry picked from commit a94d35fcde
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
62ae5f373a
commit
11cb728c35
@@ -202,6 +202,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
|
||||
|
Reference in New Issue
Block a user