Commit d0ba0268 authored by Robert Jensch's avatar Robert Jensch

Modified: - instance regex supports entity instantiation

parent 14e4970d
......@@ -243,8 +243,7 @@ class VHDLParser(DepParser):
# instantions
libraries = set([dep_file.library])
instance_pattern = re.compile(
r"^\s*(\w+)\s*\:\s*(\w+)\s*(?:port\s+map.*?;"
r"|generic\s+map.*?;|\s*;)",
r"^\s*(\w+)\s*:\s*(?:entity\s+\w+\.)?(\w+)\s*(?:port\s+map.*?|generic\s+map.*?)",
re.DOTALL | re.MULTILINE | re.IGNORECASE)
def do_instance(text):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment