fix: add used_by in parser setter

This commit is contained in:
kiyan 2021-03-01 19:11:35 +01:00 committed by Stephan Seitz
parent 34bb66c48f
commit 21799c9ed6

View file

@ -17,7 +17,11 @@ local list = setmetatable({}, {
rawset(table, parsername, setmetatable(parserconfig, {
__newindex = function(parserconfigtable, key, value)
rawset(parserconfigtable, key, value)
if key == "used_by" then
ft_to_parsername[value] = parsername
else
rawset(parserconfigtable, key, value)
end
end
}))