From a9f3f9af4008cacec256b1dfa1157984bc75346b Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 1 Mar 2020 16:45:17 +1100 Subject: [PATCH] autotest: attempt to fix param-parse crlf issue --- Tools/autotest/param_metadata/param_parse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/param_metadata/param_parse.py b/Tools/autotest/param_metadata/param_parse.py index 27526599d4..a576cda198 100755 --- a/Tools/autotest/param_metadata/param_parse.py +++ b/Tools/autotest/param_metadata/param_parse.py @@ -37,9 +37,9 @@ args = parser.parse_args() prog_param = re.compile(r"@Param: (\w+).*((?:\n[ \t]*// @(\w+)(?:{([^}]+)})?: (.*))+)(?:\n[ \t]*\n|\n[ \t]+[A-Z])", re.MULTILINE) # match e.g @Value: 0=Unity, 1=Koala, 17=Liability -prog_param_fields = re.compile(r"[ \t]*// @(\w+): (.*)") +prog_param_fields = re.compile(r"[ \t]*// @(\w+): ([^\r\n]*)") # match e.g @Value{Copter}: 0=Volcano, 1=Peppermint -prog_param_tagged_fields = re.compile(r"[ \t]*// @(\w+){([^}]+)}: (.*)") +prog_param_tagged_fields = re.compile(r"[ \t]*// @(\w+){([^}]+)}: ([^\r\n]*)") prog_groups = re.compile(r"@Group: *(\w+).*((?:\n[ \t]*// @(Path): (\S+))+)", re.MULTILINE)