File tree 1 file changed +15
-8
lines changed 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -6371,6 +6371,19 @@ yyl_leftparen(pTHX_ char *s)
6371
6371
TOKEN ('(' );
6372
6372
}
6373
6373
6374
+ static int
6375
+ yyl_rightparen (pTHX_ char * s )
6376
+ {
6377
+ if (!PL_lex_allbrackets && PL_lex_fakeeof >= LEX_FAKEEOF_CLOSING )
6378
+ TOKEN (0 );
6379
+ s ++ ;
6380
+ PL_lex_allbrackets -- ;
6381
+ s = skipspace (s );
6382
+ if (* s == '{' )
6383
+ PREBLOCK (')' );
6384
+ TERM (')' );
6385
+ }
6386
+
6374
6387
/*
6375
6388
yylex
6376
6389
@@ -7174,15 +7187,9 @@ Perl_yylex(pTHX)
7174
7187
s ++ ;
7175
7188
PL_expect = XSTATE ;
7176
7189
TOKEN (';' );
7190
+
7177
7191
case ')' :
7178
- if (!PL_lex_allbrackets && PL_lex_fakeeof >= LEX_FAKEEOF_CLOSING )
7179
- TOKEN (0 );
7180
- s ++ ;
7181
- PL_lex_allbrackets -- ;
7182
- s = skipspace (s );
7183
- if (* s == '{' )
7184
- PREBLOCK (')' );
7185
- TERM (')' );
7192
+ return yyl_rightparen (aTHX_ s );
7186
7193
7187
7194
case ']' :
7188
7195
return yyl_rightsquare (aTHX_ s );
You can’t perform that action at this time.
0 commit comments