diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-01-05 21:03:30 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-01-05 21:03:30 +0100 |
commit | 02750fd9397d0723237d916d80df49fecfd40e5d (patch) | |
tree | 7326e0209d181a4adb593e342366be5aae1c379a /src | |
parent | 4d37b288fc3c94a912326b5e4b1f4e3585d6a4ef (diff) | |
download | ghdl-02750fd9397d0723237d916d80df49fecfd40e5d.tar.gz ghdl-02750fd9397d0723237d916d80df49fecfd40e5d.tar.bz2 ghdl-02750fd9397d0723237d916d80df49fecfd40e5d.zip |
vhdl-parse.adb: improve diagnostic messages
Diffstat (limited to 'src')
-rw-r--r-- | src/vhdl/vhdl-parse.adb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-parse.adb b/src/vhdl/vhdl-parse.adb index 594e47384..34e58ec10 100644 --- a/src/vhdl/vhdl-parse.adb +++ b/src/vhdl/vhdl-parse.adb @@ -5745,6 +5745,7 @@ package body Vhdl.Parse is when Tok_Semi_Colon | Tok_Then + | Tok_Is | Tok_Generate | Tok_Loop => -- Surely a missing parenthesis. @@ -6856,7 +6857,7 @@ package body Vhdl.Parse is Res : Iir; begin Flag_Parse_Parenthesis := True; - Res := Parse_Expression; + Res := Parse_Expression_Keyword; Flag_Parse_Parenthesis := Prev_Flag; return Res; |