diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vhdl/vhdl-scanner.adb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vhdl/vhdl-scanner.adb b/src/vhdl/vhdl-scanner.adb index dc3cc2be0..089b19125 100644 --- a/src/vhdl/vhdl-scanner.adb +++ b/src/vhdl/vhdl-scanner.adb @@ -2038,7 +2038,9 @@ package body Vhdl.Scanner is -- A comment [...] may contain any character except the -- format effectors vertical tab, carriage return, line -- feed and form feed. - if not (Flags.Mb_Comment or Vhdl_Std >= Vhdl_02) + if not (Flags.Mb_Comment + or Flags.Flag_Relaxed_Rules + or Vhdl_Std >= Vhdl_02) and then Characters_Kind (Source (Pos)) = Invalid then Error_Msg_Scan ("invalid character, even in a comment"); |