From 4f4d809a4e4078d5219b3b4a66e490a2e79801c0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 18 Dec 2011 21:49:48 +0100 Subject: [PATCH] fhdl: better matching of assignment --- migen/fhdl/structure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index 4d593f53..50805abf 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -128,7 +128,7 @@ def _cst(x): def _make_signal_name(): frame = inspect.currentframe().f_back.f_back line = inspect.getframeinfo(frame).code_context[0] - m = re.match('[\t ]*([0-9A-Za-z_\.]+) =', line) + m = re.match('[\t ]*([0-9A-Za-z_\.]+)[\t ]*=', line) if m is None: return None name = m.group(1) name = name.split('.') -- 2.30.2