aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-scanner.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-05-25 20:38:52 +0200
committerTristan Gingold <tgingold@free.fr>2020-05-25 21:13:33 +0200
commitf5c1bf6aaea852b8bee557bc9de98ce1b65f91ce (patch)
tree6b71f35b738fe20b23975f1edaa1aa5a6dac1e5b /src/vhdl/vhdl-scanner.adb
parentb2d6f9d89a2199e855f4cf2a0b64008f6cb56e93 (diff)
downloadghdl-f5c1bf6aaea852b8bee557bc9de98ce1b65f91ce.tar.gz
ghdl-f5c1bf6aaea852b8bee557bc9de98ce1b65f91ce.tar.bz2
ghdl-f5c1bf6aaea852b8bee557bc9de98ce1b65f91ce.zip
vhdl-scanner: makes -C part of -frelaxed
Diffstat (limited to 'src/vhdl/vhdl-scanner.adb')
-rw-r--r--src/vhdl/vhdl-scanner.adb4
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");