From eb65a44de0494dad4a4c4f02317043e2898f01cb Mon Sep 17 00:00:00 2001 From: Elvish_Hunter Date: Sun, 12 Aug 2018 16:48:28 +0200 Subject: [PATCH] wmllint: added [lua] to the allowed children of [if] --- data/tools/wmllint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/tools/wmllint b/data/tools/wmllint index cfe512443c5e..da962de4152a 100755 --- a/data/tools/wmllint +++ b/data/tools/wmllint @@ -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