diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-10-20 21:27:58 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-10-20 21:27:58 +0200 |
commit | 7a3a15b55ecf876ec7a698b9f775ccebda76c1cf (patch) | |
tree | 4adf91904aa81f45735f9d9b10cfefed1548b979 | |
parent | 3a8d327f7ee8e3466664992f662a68d3bdf364cb (diff) | |
download | ghdl-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
-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 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 |