Skip to content

Commit 89f1830

Browse files
committed
Move token start position appropriately when stripping __identifer__ prefix
Fixes 1043622#commitcomment-133811801
1 parent decab84 commit 89f1830

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

source/lex.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ class token
307307
)
308308
{
309309
sv.remove_prefix(prefix.size());
310+
pos.colno += prefix.size();
310311
}
311312
}
312313

source/parse.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8264,7 +8264,6 @@ class parser
82648264

82658265
else
82668266
{
8267-
82688267
// Next is optionally a requires clause (if not using the "-> expr;" syntax)
82698268
if (curr() == "requires")
82708269
{

0 commit comments

Comments
 (0)