File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1
1
# !./perl
2
2
3
- print " 1..8 \n " ;
3
+ print " 1..9 \n " ;
4
4
5
5
my $CAT = ($^O eq ' MSWin32' ) ? ' type' : ' cat' ;
6
6
@@ -201,3 +201,19 @@ $this,$that
201
201
$that = 8;
202
202
write LEX;
203
203
}
204
+ # LEX_INTERPNORMAL test
205
+ my %e = ( a => 1 );
206
+ format OUT4 =
207
+ @<<<<<<
208
+ "$e {a}"
209
+ .
210
+ open OUT4, " >Op_write.tmp" or die " Can't create Op_write.tmp" ;
211
+ write (OUT4);
212
+ close OUT4;
213
+ if (` $CAT Op_write.tmp` eq " 1\n " ) {
214
+ print " ok 9\n " ;
215
+ unlink " Op_write.tmp" ;
216
+ }
217
+ else {
218
+ print " not ok 9\n " ;
219
+ }
Original file line number Diff line number Diff line change @@ -3172,7 +3172,7 @@ Perl_yylex(pTHX)
3172
3172
yyerror ("Unmatched right curly bracket" );
3173
3173
else
3174
3174
PL_expect = (expectation )PL_lex_brackstack [-- PL_lex_brackets ];
3175
- if (PL_lex_brackets < PL_lex_formbrack )
3175
+ if (PL_lex_brackets < PL_lex_formbrack && PL_lex_state != LEX_INTERPNORMAL )
3176
3176
PL_lex_formbrack = 0 ;
3177
3177
if (PL_lex_state == LEX_INTERPNORMAL ) {
3178
3178
if (PL_lex_brackets == 0 ) {
@@ -7176,7 +7176,7 @@ S_scan_formline(pTHX_ register char *s)
7176
7176
bool needargs = FALSE;
7177
7177
7178
7178
while (!needargs ) {
7179
- if (* s == '.' || * s == '}' ) {
7179
+ if (* s == '.' || * s == /*{*/ '}' ) {
7180
7180
/*SUPPRESS 530*/
7181
7181
#ifdef PERL_STRICT_CR
7182
7182
for (t = s + 1 ;SPACE_OR_TAB (* t ); t ++ ) ;
You can’t perform that action at this time.
0 commit comments