Skip to content

Commit

Permalink
wmllint: added [lua] to the allowed children of [if]
Browse files Browse the repository at this point in the history
  • Loading branch information
Elvish-Hunter committed Aug 12, 2018
1 parent d128e60 commit eb65a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/tools/wmllint
Expand Up @@ -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
Expand Down

0 comments on commit eb65a44

Please sign in to comment.