From f5c1bf6aaea852b8bee557bc9de98ce1b65f91ce Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 25 May 2020 20:38:52 +0200 Subject: vhdl-scanner: makes -C part of -frelaxed --- src/vhdl/vhdl-scanner.adb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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"); -- cgit v1.2.3