Skip to content

Commit

Permalink
wmllint: do not warn about unknown IDs in [aspect]
Browse files Browse the repository at this point in the history
  • Loading branch information
Elvish-Hunter committed Aug 12, 2018
1 parent fa144aa commit 03510c3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions data/tools/wmllint
Expand Up @@ -1672,6 +1672,7 @@ def global_sanity_check(filename, lines):
in_goal = False
in_set_menu_item = False
in_clear_menu_item = False
in_aspect = False
in_facet = False
in_sound_source = False
in_remove_sound_source = False
Expand Down Expand Up @@ -1764,6 +1765,10 @@ def global_sanity_check(filename, lines):
in_clear_menu_item = True
elif "[/clear_menu_item]" in lines[i]:
in_clear_menu_item = False
elif "[aspect]" in lines[i]:
in_aspect = True
elif "[/aspect]" in lines[i]:
in_aspect = False
elif "[facet]" in lines[i]:
in_facet = True
elif "[/facet]" in lines[i]:
Expand Down Expand Up @@ -2040,9 +2045,10 @@ def global_sanity_check(filename, lines):
elif value and value[0] in ("$", "{"):
continue
elif preamble_seen and subtag_depth > 0 and not ignore_id \
and not in_object and not in_cfg and not in_facet \
and not in_sound_source and not in_remove_sound_source \
and not in_stage and not in_goal and not in_set_menu_item \
and not in_object and not in_cfg and not in_aspect \
and not in_facet and not in_sound_source \
and not in_remove_sound_source and not in_stage \
and not in_goal and not in_set_menu_item \
and not in_clear_menu_item and not directly_in_event[-1] \
and not in_time_area and not in_trait and not in_checkbox \
and not in_combo and not in_entry and not in_slider \
Expand Down

0 comments on commit 03510c3

Please sign in to comment.