diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-05-25 20:38:52 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-05-25 21:13:33 +0200 |
commit | f5c1bf6aaea852b8bee557bc9de98ce1b65f91ce (patch) | |
tree | 6b71f35b738fe20b23975f1edaa1aa5a6dac1e5b /src | |
parent | b2d6f9d89a2199e855f4cf2a0b64008f6cb56e93 (diff) | |
download | ghdl-f5c1bf6aaea852b8bee557bc9de98ce1b65f91ce.tar.gz ghdl-f5c1bf6aaea852b8bee557bc9de98ce1b65f91ce.tar.bz2 ghdl-f5c1bf6aaea852b8bee557bc9de98ce1b65f91ce.zip |
vhdl-scanner: makes -C part of -frelaxed
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"); |