Skip to content
Snippets Groups Projects
Commit 20f22b0c authored by Lukas Leuenberger's avatar Lukas Leuenberger :robot:
Browse files

Handles end of VHDL entity parsing

Adds logic to identify and terminate parsing at the end of a VHDL entity declaration. Improves parsing accuracy by ensuring proper detection of the `end entity` statement.
parent 14111dc6
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,11 @@ class Parser_VHDL(Parser):
else:
if generic_running == False and port_running == False:
# Identify end entity
end_entity_match = re.match(r"^\s*end\sentity\s+(\w+);", line, re.IGNORECASE)
if end_entity_match:
break
# Identify generic
generic_match = re.match(r"^\s*generic\s*\(", line, re.IGNORECASE)
if generic_match:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment