From a0dfbd1291ef53e45e35720a49626ea13de6286c Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sun, 1 Sep 2019 16:31:10 -0400 Subject: [PATCH] add a : to the line format. --- string_compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string_compiler.py b/string_compiler.py index 3765ef9..11ce274 100644 --- a/string_compiler.py +++ b/string_compiler.py @@ -172,7 +172,7 @@ def read_data(f, name): if line.startswith("#"): continue if line.startswith("//"): continue - m = re.match(r'^"([^"]*)"\s+(\d+|0x[A-Fa-f0-9]+)$', line) + m = re.match(r'^"([^"]*)"\s*:\s*(\d+|0x[A-Fa-f0-9]+)$', line) if not m: err = "{}:{}: Bad data: {}".format(name,ln,line) raise Exception(err)