diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-10-24 20:09:51 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-10-24 20:09:51 +0200 |
commit | 32c88bc9f4eaf455290af582b6494c8b2e2f8a58 (patch) | |
tree | 47efd5a31afc99814371df4a983385064e55c65b /src/vhdl | |
parent | 0674a3535c8861ab608ad0bc57506b83cda8a158 (diff) | |
download | ghdl-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')
-rw-r--r-- | src/vhdl/vhdl-parse.adb | 4 |
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; |