diff --git a/changelog.md b/changelog.md index ef0bcc4f1190..88d2fadee408 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,8 @@ * Do not list nameless abilities in the Abilities and Ability Upgrades lists in unit descriptions in Help (issue #3060). ### Miscellaneous and bug fixes + * Made wmllint recognize [remove_time_area] in order to avoid spurious warnings about + unit ids. ## Version 1.14.13 ### Campaigns diff --git a/data/tools/wmllint b/data/tools/wmllint index e721418fccc0..bbe69a1ffc73 100755 --- a/data/tools/wmllint +++ b/data/tools/wmllint @@ -1741,6 +1741,7 @@ def global_sanity_check(filename, lines): in_primary_unit = False in_secondary_unit = False in_remove_event = False + in_remove_time_area = False in_tunnel = False in_filter = False in_checkbox = False @@ -1901,6 +1902,10 @@ def global_sanity_check(filename, lines): in_remove_event = True elif "[/remove_event]" in lines[i]: in_remove_event = False + elif "[remove_time_area]" in lines[i]: + in_remove_time_area = True + elif "[/remove_time_area]" in lines[i]: + in_remove_time_area = False # [tunnel] supports a [filter] sub-tag, so handle it elif "[tunnel]" in lines[i]: in_tunnel = True @@ -2126,7 +2131,8 @@ def global_sanity_check(filename, lines): and not in_combo and not in_entry and not in_slider \ and not in_map_generator \ and not (in_fire_event and not (in_primary_unit or in_secondary_unit)) \ - and not in_remove_event and not (in_tunnel and not in_filter): + and not in_remove_event and not in_remove_time_area \ + and not (in_tunnel and not in_filter): ids = value.split(",") for id_ in ids: # removal of leading whitespace of items in comma-separated lists