fhdl: better matching of assignment

This commit is contained in:
Sebastien Bourdeauducq 2011-12-18 21:49:48 +01:00
parent 107f03fd4b
commit 4f4d809a4e
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ def _cst(x):
def _make_signal_name(): def _make_signal_name():
frame = inspect.currentframe().f_back.f_back frame = inspect.currentframe().f_back.f_back
line = inspect.getframeinfo(frame).code_context[0] 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 if m is None: return None
name = m.group(1) name = m.group(1)
name = name.split('.') name = name.split('.')