wmllint: added four tags to the allowed children of [if]

They are [true], [false], [found_item] and [proceed_to_next_scenario]
This commit is contained in:
Elvish_Hunter 2020-12-05 21:51:43 +01:00
parent 7babdf3cec
commit 5eadebeb3a

View file

@ -1365,7 +1365,9 @@ def local_sanity_check(filename, nav, key, prefix, value, comment):
if isOpener(nav.element) and nav.element not in ("[and]",
"[else]", "[elseif]", "[frame]", "[have_location]",
"[have_unit]", "[not]", "[or]", "[then]", "[lua]",
"[variable]") and not nav.element.endswith("_frame]") \
"[variable]", "[true]", "[false]", "[found_item]",
"[proceed_to_next_scenario]") \
and not nav.element.endswith("_frame]") \
and not nav.element.startswith("[filter") and \
nav.element not in custom_conditionals:
print(errlead + 'illegal child of [if]:', nav.element)