File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
use strict;
10
10
11
- plan 9 ;
11
+ plan 12 ;
12
12
13
13
my $err ;
14
14
my $err1 = " Unimplemented at $0 line " ;
@@ -42,6 +42,22 @@ eval { @transformed = map {;... } @input; };
42
42
is $@ , $err , " Disambiguation case 4" ;
43
43
$@ = ' ' ;
44
44
45
+ note(" RT #132150: ... is a term, not an operator" );
46
+ $err = $err1 . ( __LINE__ + 1 ) . $err2 ;
47
+ eval { ... + 0 };
48
+ is $@ , $err , " ... + 0 parses" ;
49
+ $@ = ' ' ;
50
+
51
+ $err = $err1 . ( __LINE__ + 1 ) . $err2 ;
52
+ eval { ... % 1 };
53
+ is $@ , $err , " ... % 1 parses" ;
54
+ $@ = ' ' ;
55
+
56
+ $err = $err1 . ( __LINE__ + 1 ) . $err2 ;
57
+ eval { ... / 1 };
58
+ is $@ , $err , " ... / 1 parses" ;
59
+ $@ = ' ' ;
60
+
45
61
#
46
62
# Regression tests, making sure ... is still parsable as an operator.
47
63
#
Original file line number Diff line number Diff line change @@ -6853,7 +6853,7 @@ Perl_yylex(pTHX)
6853
6853
}
6854
6854
if (PL_expect == XSTATE && s [1 ] == '.' && s [2 ] == '.' ) {
6855
6855
s += 3 ;
6856
- OPERATOR (YADAYADA );
6856
+ TERM (YADAYADA );
6857
6857
}
6858
6858
if (PL_expect == XOPERATOR || !isDIGIT (s [1 ])) {
6859
6859
char tmp = * s ++ ;
You can’t perform that action at this time.
0 commit comments