We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6427caf commit cb407eeCopy full SHA for cb407ee
parsers/perl.c
@@ -547,11 +547,6 @@ static const unsigned char *collectHereDocMarker (struct hereDocMarkerManager *m
547
if (*cp == '\0')
548
return NULL;
549
550
- /* Is shift operator? */
551
- if (isdigit (*cp))
552
- /* Scan the rest of the string. */
553
- return cp + 1;
554
-
555
if (*cp == '~') {
556
if (space_seen)
557
return cp + 1;
@@ -578,6 +573,8 @@ static const unsigned char *collectHereDocMarker (struct hereDocMarkerManager *m
578
573
579
574
break;
580
575
default:
576
+ if (!isIdentifier1(*cp))
577
+ return cp;
581
582
return cp;
583
0 commit comments