Skip to content

Commit

Permalink
parsing: allow multiply and divide within component instantiations (#966
Browse files Browse the repository at this point in the history
)

Co-authored-by: Kim Taylor <kimt@blackmagicdesign.com>
  • Loading branch information
kmtaylor and Kim Taylor committed Mar 13, 2024
1 parent 86007a4 commit deef9d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/news.d/966.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow multiply and divide within component instantiations.
2 changes: 1 addition & 1 deletion vunit/vhdl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def parse(cls, code):

_component_re = re.compile(
r"[a-zA-Z]\w*\s*\:\s*(?:component)?\s*(?:(?:[a-zA-Z]\w*)\.)?([a-zA-Z]\w*)\s*"
r"(?:generic|port) map\s*\([\s\w\=\>\,\.\)\(\+\-\'\"]*\);",
r"(?:generic|port) map\s*\([\s\w\=\>\,\.\)\(\+\-\*\/\'\"]*\);",
re.IGNORECASE,
)

Expand Down

0 comments on commit deef9d3

Please sign in to comment.