wmllint: added [lua] to the allowed children of [if]

(cherry-picked from commit b1ec52cab8)
This commit is contained in:
Elvish_Hunter 2018-08-12 16:48:28 +02:00
parent 236ca25832
commit 338d190563

View file

@ -1303,7 +1303,7 @@ def local_sanity_check(filename, nav, key, prefix, value, comment):
(len(ancestors) >= 2 and parent == "#ifdef" and ancestors[-1] == "[if]"):
if isOpener(nav.element) and nav.element not in ("[and]",
"[else]", "[elseif]", "[frame]", "[have_location]",
"[have_unit]", "[not]", "[or]", "[then]",
"[have_unit]", "[not]", "[or]", "[then]", "[lua]",
"[variable]") and not nav.element.endswith("_frame]") and not nav.element.startswith("[filter"):
print(errlead + 'illegal child of [if]:', nav.element)
# Check for fluky credit parts