From 3024c55a468e49d4748a13a06cd82e854ca373f5 Mon Sep 17 00:00:00 2001 From: Nicolas Setton Date: Tue, 12 Feb 2019 15:31:40 -0500 Subject: [PATCH] Adjust regexp to know about underscores in identifiers Fixes an issue where mains with underscores weren't considered as mains. --- infrastructure/container_payload/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/container_payload/run.py b/infrastructure/container_payload/run.py index d8485a0..e66fc01 100644 --- a/infrastructure/container_payload/run.py +++ b/infrastructure/container_payload/run.py @@ -40,7 +40,7 @@ pragma Warnings (Off, "subprogram * has no effect"); pragma Warnings (Off, "file name does not match"); """ -procedure_re = re.compile("^procedure +[A-Za-z][a-zA-Z0-9]* +is", re.MULTILINE) +procedure_re = re.compile("^procedure +[A-Za-z][_a-zA-Z0-9]* +is", re.MULTILINE) def run(command):