Skip to content

Commit

Permalink
yyl_dollar: we don't need to diagnose tick-in-id here
Browse files Browse the repository at this point in the history
when scanning for an id for a heuristic.

Fixes #22145
  • Loading branch information
tonycoz committed Apr 16, 2024
1 parent 6e914b1 commit 93ed5f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions t/lib/warnings/toke
Expand Up @@ -1802,3 +1802,8 @@ EXPECT
warn: Bareword found where operator expected (Do you need to predeclare "foo"?) at - line 3, near "foo bar"
syntax error at - line 3, near "foo bar"
Execution of - aborted due to compilation errors.
########
# NAME SIG assign heuristic warning [github #22145]
use warnings;
$SIG{INT} = uc'default';
EXPECT
3 changes: 1 addition & 2 deletions toke.c
Expand Up @@ -5455,8 +5455,7 @@ yyl_dollar(pTHX_ char *s)
} while (isSPACE(*t));
if (isIDFIRST_lazy_if_safe(t, PL_bufend, UTF)) {
STRLEN len;
t = scan_word6(t, tmpbuf, sizeof tmpbuf, TRUE,
&len, TRUE);
t = scan_word(t, tmpbuf, sizeof tmpbuf, TRUE, &len);
while (isSPACE(*t))
t++;
if ( *t == ';'
Expand Down

0 comments on commit 93ed5f0

Please sign in to comment.