Skip to content

Commit

Permalink
Fixed dependency scanning bug. Closes issue #50.
Browse files Browse the repository at this point in the history
  • Loading branch information
kraigher committed Jun 17, 2015
1 parent a3a3137 commit 594e747
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vunit/test/unit/test_vhdl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_parsing_references(self):
entity work1.foo1
entity work1.foo1(a1)
for all : bar use entity work2.foo2
for all : bar use entity work2.foo2(a2)
for all : bar use entity work2.foo2 (a2)
for foo : bar use configuration work.cfg
entity foo is -- False
Expand Down
2 changes: 1 addition & 1 deletion vunit/vhdl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ def get_ids(match):
return references

_entity_reference_re = re.compile(
r'(^|\A|\s)\s*entity\s+(?P<lib>[a-zA-Z]\w*)\.(?P<ent>[a-zA-Z]\w*)(\((?P<arch>[a-zA-Z]\w*)\))?',
r'(^|\A|\s)\s*entity\s+(?P<lib>[a-zA-Z]\w*)\.(?P<ent>[a-zA-Z]\w*)\s*(\((?P<arch>[a-zA-Z]\w*)\))?',
re.MULTILINE | re.IGNORECASE)

@classmethod
Expand Down

0 comments on commit 594e747

Please sign in to comment.