aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-parse.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-24 20:09:51 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-24 20:09:51 +0200
commit32c88bc9f4eaf455290af582b6494c8b2e2f8a58 (patch)
tree47efd5a31afc99814371df4a983385064e55c65b /src/vhdl/vhdl-parse.adb
parent0674a3535c8861ab608ad0bc57506b83cda8a158 (diff)
downloadghdl-32c88bc9f4eaf455290af582b6494c8b2e2f8a58.tar.gz
ghdl-32c88bc9f4eaf455290af582b6494c8b2e2f8a58.tar.bz2
ghdl-32c88bc9f4eaf455290af582b6494c8b2e2f8a58.zip
vhdl-parse: do not scan PSL keywords in vunit declarations.
Diffstat (limited to 'src/vhdl/vhdl-parse.adb')
-rw-r--r--src/vhdl/vhdl-parse.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-parse.adb b/src/vhdl/vhdl-parse.adb
index a6e24922d..9a358fe0c 100644
--- a/src/vhdl/vhdl-parse.adb
+++ b/src/vhdl/vhdl-parse.adb
@@ -9885,7 +9885,11 @@ package body Vhdl.Parse is
| Tok_Use
| Tok_Group
| Tok_Package =>
+ -- Do not recognize PSL keywords. This is required for
+ -- 'boolean' which is a PSL keyword.
+ Vhdl.Scanner.Flag_Psl := False;
Item := Parse_Declaration (Res, Res);
+ Vhdl.Scanner.Flag_Psl := True;
when Tok_Identifier =>
declare
Label : Name_Id;