mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl: better matching of assignment
This commit is contained in:
parent
107f03fd4b
commit
4f4d809a4e
1 changed files with 1 additions and 1 deletions
|
@ -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('.')
|
||||
|
|
Loading…
Reference in a new issue