aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-10-09 18:39:19 +0200
committerTristan Gingold <tgingold@free.fr>2020-10-09 18:43:04 +0200
commite23a9f0b04b91468fbeead582b15de394c8a4a80 (patch)
treef757a7b26ab529aa14be5558ec17abc7813c4efd /src/vhdl
parentd14a24f3c67566081ca1abbf5e5084166ade263c (diff)
downloadghdl-e23a9f0b04b91468fbeead582b15de394c8a4a80.tar.gz
ghdl-e23a9f0b04b91468fbeead582b15de394c8a4a80.tar.bz2
ghdl-e23a9f0b04b91468fbeead582b15de394c8a4a80.zip
vhdl-parse: improve error message for extra '('.
Diffstat (limited to 'src/vhdl')
-rw-r--r--src/vhdl/vhdl-parse.adb6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-parse.adb b/src/vhdl/vhdl-parse.adb
index 885604414..a2b0ad79d 100644
--- a/src/vhdl/vhdl-parse.adb
+++ b/src/vhdl/vhdl-parse.adb
@@ -5741,13 +5741,17 @@ package body Vhdl.Parse is
return Res;
- when Tok_Semi_Colon =>
+ when Tok_Semi_Colon
+ | Tok_Then
+ | Tok_Generate
+ | Tok_Loop =>
-- Surely a missing parenthesis.
-- FIXME: in case of multiple missing parenthesises, several
-- messages will be displayed
Error_Msg_Parse
("missing ')' for opening parenthesis at %l", +Loc);
return Expr;
+
when others =>
-- Surely a parse error...
null;