File tree 1 file changed +14
-8
lines changed 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -6359,6 +6359,18 @@ yyl_tilde(pTHX_ char *s)
6359
6359
BCop (bof ? OP_NCOMPLEMENT : OP_COMPLEMENT );
6360
6360
}
6361
6361
6362
+ static int
6363
+ yyl_leftparen (pTHX_ char * s )
6364
+ {
6365
+ if (PL_last_lop == PL_oldoldbufptr || PL_last_uni == PL_oldoldbufptr )
6366
+ PL_oldbufptr = PL_oldoldbufptr ; /* allow print(STDOUT 123) */
6367
+ else
6368
+ PL_expect = XTERM ;
6369
+ s = skipspace (s );
6370
+ PL_lex_allbrackets ++ ;
6371
+ TOKEN ('(' );
6372
+ }
6373
+
6362
6374
/*
6363
6375
yylex
6364
6376
@@ -7153,14 +7165,8 @@ Perl_yylex(pTHX)
7153
7165
return yyl_colon (aTHX_ s + 1 );
7154
7166
7155
7167
case '(' :
7156
- s ++ ;
7157
- if (PL_last_lop == PL_oldoldbufptr || PL_last_uni == PL_oldoldbufptr )
7158
- PL_oldbufptr = PL_oldoldbufptr ; /* allow print(STDOUT 123) */
7159
- else
7160
- PL_expect = XTERM ;
7161
- s = skipspace (s );
7162
- PL_lex_allbrackets ++ ;
7163
- TOKEN ('(' );
7168
+ return yyl_leftparen (aTHX_ s + 1 );
7169
+
7164
7170
case ';' :
7165
7171
if (!PL_lex_allbrackets && PL_lex_fakeeof >= LEX_FAKEEOF_NONEXPR )
7166
7172
TOKEN (0 );
You can’t perform that action at this time.
0 commit comments