From 291ded5b3b784a8ee5448076360db24079e4f916 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 24 Aug 2021 06:40:12 +0200 Subject: vhdl-parse.adb: improve error recovery. For #1837 --- src/vhdl/vhdl-parse.adb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; -- cgit v1.2.3