aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vhdl/vhdl-parse.adb2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-parse.adb b/src/vhdl/vhdl-parse.adb
index c96aaaad1..01c8df6ca 100644
--- a/src/vhdl/vhdl-parse.adb
+++ b/src/vhdl/vhdl-parse.adb
@@ -359,6 +359,8 @@ package body Vhdl.Parse is
| Tok_Context =>
-- Possible start of a new unit.
exit;
+ when Tok_End =>
+ Skip_Until_Semi_Colon;
when others =>
Scan;
end case;