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:
parent
7babdf3cec
commit
5eadebeb3a
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue