Skip to content

Commit

Permalink
fhdl: better matching of assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Dec 18, 2011
1 parent 107f03f commit 4f4d809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migen/fhdl/structure.py
Expand Up @@ -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('.')
Expand Down

0 comments on commit 4f4d809

Please sign in to comment.