wmllint: added [lua] to the allowed children of [if]
(cherry-picked from commit b1ec52cab8
)
This commit is contained in:
parent
236ca25832
commit
338d190563
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue