aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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