diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-07-24 05:20:19 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-07-24 05:23:33 +0200 |
commit | a4e36e2bb3a636b33390357d05e8e5ea018c3c42 (patch) | |
tree | 48f139e0016a9016d85369d6d0deba95d550b365 /src | |
parent | 257309de4112f0f9ea5712669e840834feb3f066 (diff) | |
download | ghdl-a4e36e2bb3a636b33390357d05e8e5ea018c3c42.tar.gz ghdl-a4e36e2bb3a636b33390357d05e8e5ea018c3c42.tar.bz2 ghdl-a4e36e2bb3a636b33390357d05e8e5ea018c3c42.zip |
synth: enable handling of pragma translate_on/off.
Diffstat (limited to 'src')
-rw-r--r-- | src/ghdldrv/ghdlsynth.adb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ghdldrv/ghdlsynth.adb b/src/ghdldrv/ghdlsynth.adb index d7f6bb848..1d4624985 100644 --- a/src/ghdldrv/ghdlsynth.adb +++ b/src/ghdldrv/ghdlsynth.adb @@ -27,6 +27,7 @@ with Libraries; with Flags; with Vhdl.Nodes; use Vhdl.Nodes; with Vhdl.Errors; +with Vhdl.Scanner; with Vhdl.Std_Package; with Vhdl.Canon; with Vhdl.Configuration; @@ -116,6 +117,8 @@ package body Ghdlsynth is end loop; Vhdl.Annotations.Flag_Synthesis := True; + Vhdl.Scanner.Flag_Comment_Keyword := True; + Vhdl.Scanner.Flag_Pragma_Comment := True; Common_Compile_Init (False); -- Will elaborate. |