From a84e44d8f7c60b953f53f0b668b70eade4ea54b2 Mon Sep 17 00:00:00 2001 From: Elvish_Hunter Date: Fri, 25 Jun 2021 11:18:28 +0200 Subject: [PATCH] wmlscope: match level 4 deprecated macros --- data/tools/wesnoth/wmltools3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/tools/wesnoth/wmltools3.py b/data/tools/wesnoth/wmltools3.py index df209e6c436..62938824bff 100644 --- a/data/tools/wesnoth/wmltools3.py +++ b/data/tools/wesnoth/wmltools3.py @@ -685,12 +685,12 @@ class CrossRef: continue # handle deprecated macros if "deprecated" in line: - # There are three levels of macro deprecation (1, 2 and 3) + # There are four levels of macro deprecation (1, 2, 3 and 4) # Sometimes they have a version number in which they're # scheduled for removal and sometimes they don't have it # This regex seems to match every deprecated macro in mainline # in version 1.15.6 - m = re.match(r"\s*#\s?deprecated\s(1|2|3)\s?([0-9.]*)\s?(.*)", line) + m = re.match(r"\s*#\s?deprecated\s(1|2|3|4)\s?([0-9.]*)\s?(.*)", line) if m: here.deprecated = True # leave them as strings: they'll be used for HTML output