aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-scanner.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-10-20 21:27:58 +0200
committerTristan Gingold <tgingold@free.fr>2019-10-20 21:27:58 +0200
commit7a3a15b55ecf876ec7a698b9f775ccebda76c1cf (patch)
tree4adf91904aa81f45735f9d9b10cfefed1548b979 /src/vhdl/vhdl-scanner.adb
parent3a8d327f7ee8e3466664992f662a68d3bdf364cb (diff)
downloadghdl-7a3a15b55ecf876ec7a698b9f775ccebda76c1cf.tar.gz
ghdl-7a3a15b55ecf876ec7a698b9f775ccebda76c1cf.tar.bz2
ghdl-7a3a15b55ecf876ec7a698b9f775ccebda76c1cf.zip
vhdl: try to convert identifier to token only for identifiers
(and not for bit string literal). Fix #983
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 d01739a20..1d47a76f4 100644
--- a/src/vhdl/vhdl-scanner.adb
+++ b/src/vhdl/vhdl-scanner.adb
@@ -2486,7 +2486,9 @@ package body Vhdl.Scanner is
return;
when 'A' .. 'Z' | 'a' .. 'z' =>
Scan_Identifier (Flag_Psl);
- Identifier_To_Token;
+ if Current_Token = Tok_Identifier then
+ Identifier_To_Token;
+ end if;
return;
when UC_A_Grave .. UC_O_Diaeresis
| UC_O_Oblique_Stroke .. UC_Icelandic_Thorn