aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/scanner.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-11-14 18:24:44 +0100
committerTristan Gingold <tgingold@free.fr>2018-11-14 18:24:44 +0100
commitd39ab1032e8b0054ff608e70a97d347a5ab362d1 (patch)
tree4b37cfd1b0233ea1117d85cb51fecfc538fce309 /src/vhdl/scanner.adb
parent42765ddc6dcd3461a15e1c20e623edad81f2915b (diff)
downloadghdl-d39ab1032e8b0054ff608e70a97d347a5ab362d1.tar.gz
ghdl-d39ab1032e8b0054ff608e70a97d347a5ab362d1.tar.bz2
ghdl-d39ab1032e8b0054ff608e70a97d347a5ab362d1.zip
scanner: avoid to raise exception.
Diffstat (limited to 'src/vhdl/scanner.adb')
-rw-r--r--src/vhdl/scanner.adb6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vhdl/scanner.adb b/src/vhdl/scanner.adb
index 8a8150b89..9a2b488da 100644
--- a/src/vhdl/scanner.adb
+++ b/src/vhdl/scanner.adb
@@ -2017,9 +2017,9 @@ package body Scanner is
return;
when '#' =>
Error_Msg_Scan ("'#' is used for based literals and "
- & "must be preceded by a base");
- -- Cannot easily continue.
- raise Compilation_Error;
+ & "must be preceded by a base");
+ -- Skip.
+ Pos := Pos + 1;
when '"' =>
Scan_String;
return;