@@ -44,21 +44,21 @@ BEGIN {
44
44
# - fixed reference constants (\"str")
45
45
# - handle empty programs gracefully
46
46
# - handle infinite loops (for (;;) {}, while (1) {})
47
- # - differentiate between ` for my $x ...' and ` my $x; for $x ...'
47
+ # - differentiate between ' for my $x ...' and ' my $x; for $x ...'
48
48
# - various minor cleanups
49
49
# - moved globals into an object
50
- # - added ` -u', like B::C
50
+ # - added ' -u', like B::C
51
51
# - package declarations using cop_stash
52
52
# - subs, formats and code sorted by cop_seq
53
53
# Changes between 0.51 and 0.52:
54
54
# - added pp_threadsv (special variables under USE_5005THREADS)
55
55
# - added documentation
56
56
# Changes between 0.52 and 0.53:
57
57
# - many changes adding precedence contexts and associativity
58
- # - added ` -p' and ` -s' output style options
58
+ # - added ' -p' and ' -s' output style options
59
59
# - various other minor fixes
60
60
# Changes between 0.53 and 0.54:
61
- # - added support for new ` for (1..100)' optimization,
61
+ # - added support for new ' for (1..100)' optimization,
62
62
# thanks to Gisle Aas
63
63
# Changes between 0.54 and 0.55:
64
64
# - added support for new qr// construct
@@ -67,16 +67,16 @@ BEGIN {
67
67
# - tested on base/*.t, cmd/*.t, comp/*.t, io/*.t
68
68
# - fixed $# on non-lexicals broken in last big rewrite
69
69
# - added temporary fix for change in opcode of OP_STRINGIFY
70
- # - fixed problem in 0.54's for() patch in ` for (@ary)'
70
+ # - fixed problem in 0.54's for() patch in ' for (@ary)'
71
71
# - fixed precedence in conditional of ?:
72
- # - tweaked list paren elimination in ` my($x) = @_'
72
+ # - tweaked list paren elimination in ' my($x) = @_'
73
73
# - made continue-block detection trickier wrt. null ops
74
74
# - fixed various prototype problems in pp_entersub
75
75
# - added support for sub prototypes that never get GVs
76
76
# - added unquoting for special filehandle first arg in truncate
77
- # - print doubled rv2gv (a bug) as ` *{*GV}' instead of illegal ` **GV'
77
+ # - print doubled rv2gv (a bug) as ' *{*GV}' instead of illegal ' **GV'
78
78
# - added semicolons at the ends of blocks
79
- # - added -l ` #line' declaration option -- fixes cmd/subval.t 27,28
79
+ # - added -l ' #line' declaration option -- fixes cmd/subval.t 27,28
80
80
# Changes between 0.56 and 0.561:
81
81
# - fixed multiply-declared my var in pp_truncate (thanks to Sarathy)
82
82
# - used new B.pm symbolic constants (done by Nick Ing-Simmons)
@@ -89,7 +89,7 @@ BEGIN {
89
89
# Changes after 0.57:
90
90
# - added parens in \&foo (patch by Albert Dvornik)
91
91
# Changes between 0.57 and 0.58:
92
- # - fixed ` 0' statements that weren't being printed
92
+ # - fixed ' 0' statements that weren't being printed
93
93
# - added methods for use from other programs
94
94
# (based on patches from James Duncan and Hugo van der Sanden)
95
95
# - added -si and -sT to control indenting (also based on a patch from Hugo)
@@ -101,7 +101,7 @@ BEGIN {
101
101
# Changes between 0.58 and 0.59
102
102
# - added support for Chip's OP_METHOD_NAMED
103
103
# - added support for Ilya's OPpTARGET_MY optimization
104
- # - elided arrows before ` ()' subscripts when possible
104
+ # - elided arrows before ' ()' subscripts when possible
105
105
# Changes between 0.59 and 0.60
106
106
# - support for method attributes was added
107
107
# - some warnings fixed
@@ -151,7 +151,7 @@ BEGIN {
151
151
# - configurable syntax highlighting: ANSI color, HTML, TeX, etc.
152
152
# - more style options: brace style, hex vs. octal, quotes, ...
153
153
# - print big ints as hex/octal instead of decimal (heuristic?)
154
- # - handle ` my $x if 0'?
154
+ # - handle ' my $x if 0'?
155
155
# - version using op_next instead of op_first/sibling?
156
156
# - avoid string copies (pass arrays, one big join?)
157
157
# - here-docs?
@@ -249,7 +249,7 @@ BEGIN {
249
249
# parens: -p
250
250
# linenums: -l
251
251
# unquote: -q
252
- # cuddle: ` ' or ` \n', depending on -sC
252
+ # cuddle: ' ' or ' \n', depending on -sC
253
253
# indent_size: -si
254
254
# use_tabs: -sT
255
255
# ex_const: -sv
@@ -263,7 +263,7 @@ BEGIN {
263
263
# they're inside an expression or at statement level, etc. (see
264
264
# chart below). When ops with children call deparse on them, they pass
265
265
# along their precedence. Fractional values are used to implement
266
- # associativity (` ($x + $y) + $z' => ` $x + $y + $y') and related
266
+ # associativity (' ($x + $y) + $z' => ' $x + $y + $y') and related
267
267
# parentheses hacks. The major disadvantage of this scheme is that
268
268
# it doesn't know about right sides and left sides, so say if you
269
269
# assign a listop to a variable, it can't tell it's allowed to leave
@@ -303,7 +303,7 @@ BEGIN {
303
303
# \cS - steal parens (see maybe_parens_unop)
304
304
# \n - newline and indent
305
305
# \t - increase indent
306
- # \b - decrease indent (` outdent')
306
+ # \b - decrease indent (' outdent')
307
307
# \f - flush left (no indent)
308
308
# \cK - kill following semicolon, if any
309
309
@@ -950,7 +950,7 @@ sub is_state {
950
950
return $name eq " nextstate" || $name eq " dbstate" || $name eq " setstate" ;
951
951
}
952
952
953
- sub is_miniwhile { # check for one-line loop (` foo() while $y--')
953
+ sub is_miniwhile { # check for one-line loop (' foo() while $y--')
954
954
my $op = shift ;
955
955
return (!null($op ) and null($op -> sibling)
956
956
and $op -> name eq " null" and class($op ) eq " UNOP"
@@ -1010,7 +1010,7 @@ sub maybe_parens {
1010
1010
}
1011
1011
}
1012
1012
1013
- # same as above, but get around the ` if it looks like a function' rule
1013
+ # same as above, but get around the ' if it looks like a function' rule
1014
1014
sub maybe_parens_unop {
1015
1015
my $self = shift ;
1016
1016
my ($name , $kid , $cx ) = @_ ;
@@ -1031,7 +1031,7 @@ sub maybe_parens_unop {
1031
1031
return $name . substr ($kid , 1);
1032
1032
} elsif (substr ($kid , 0, 1) eq " (" ) {
1033
1033
# avoid looks-like-a-function trap with extra parens
1034
- # (` +' can lead to ambiguities)
1034
+ # (' +' can lead to ambiguities)
1035
1035
return " $name (" . $kid . " )" ;
1036
1036
} else {
1037
1037
return " $name $kid " ;
@@ -2011,7 +2011,7 @@ sub ftst {
2011
2011
my $self = shift ;
2012
2012
my ($op , $cx , $name ) = @_ ;
2013
2013
if (class($op ) eq " UNOP" ) {
2014
- # Genuine ` -X' filetests are exempt from the LLAFR, but not
2014
+ # Genuine ' -X' filetests are exempt from the LLAFR, but not
2015
2015
# l?stat(); for the sake of clarity, give'em all parens
2016
2016
return $self -> maybe_parens_unop($name , $op -> first, $cx );
2017
2017
} elsif (class($op ) =~ / ^(SV|PAD)OP$ / ) {
@@ -2061,7 +2061,7 @@ sub assoc_class {
2061
2061
my $op = shift ;
2062
2062
my $name = $op -> name;
2063
2063
if ($name eq " concat" and $op -> first-> name eq " concat" ) {
2064
- # avoid spurious ` =' -- see comment in pp_concat
2064
+ # avoid spurious ' =' -- see comment in pp_concat
2065
2065
return " concat" ;
2066
2066
}
2067
2067
if ($name eq " null" and class($op ) eq " UNOP"
@@ -2078,7 +2078,7 @@ sub assoc_class {
2078
2078
return $name . ($op -> flags & OPf_STACKED ? " =" : " " );
2079
2079
}
2080
2080
2081
- # Left associative operators, like ` +', for which
2081
+ # Left associative operators, like ' +', for which
2082
2082
# $a + $b + $c is equivalent to ($a + $b) + $c
2083
2083
2084
2084
BEGIN {
@@ -2109,7 +2109,7 @@ sub deparse_binop_left {
2109
2109
}
2110
2110
}
2111
2111
2112
- # Right associative operators, like ` =', for which
2112
+ # Right associative operators, like ' =', for which
2113
2113
# $a = $b = $c is equivalent to $a = ($b = $c)
2114
2114
2115
2115
BEGIN {
@@ -2216,9 +2216,9 @@ sub pp_smartmatch {
2216
2216
}
2217
2217
}
2218
2218
2219
- # ` .' is special because concats-of-concats are optimized to save copying
2219
+ # ' .' is special because concats-of-concats are optimized to save copying
2220
2220
# by making all but the first concat stacked. The effect is as if the
2221
- # programmer had written ` ($a . $b) .= $c', except legal.
2221
+ # programmer had written ' ($a . $b) .= $c', except legal.
2222
2222
sub pp_concat { maybe_targmy(@_ , \&real_concat) }
2223
2223
sub real_concat {
2224
2224
my $self = shift ;
@@ -2236,7 +2236,7 @@ sub real_concat {
2236
2236
return $self -> maybe_parens(" $left .$eq $right " , $cx , $prec );
2237
2237
}
2238
2238
2239
- # ` x' is weird when the left arg is a list
2239
+ # ' x' is weird when the left arg is a list
2240
2240
sub pp_repeat {
2241
2241
my $self = shift ;
2242
2242
my ($op , $cx ) = @_ ;
@@ -3254,7 +3254,7 @@ sub _method {
3254
3254
# doesn't get flattened by the append_elem that adds the method,
3255
3255
# making a (object, arg1, arg2, ...) list where the object
3256
3256
# usually is. This can be distinguished from
3257
- # ` ($obj, $arg1, $arg2)->meth()' (which is legal if $arg2 is an
3257
+ # ' ($obj, $arg1, $arg2)->meth()' (which is legal if $arg2 is an
3258
3258
# object) because in the later the list is in scalar context
3259
3259
# as the left side of -> always is, while in the former
3260
3260
# the list is in list context as method arguments always are.
@@ -3387,7 +3387,7 @@ sub check_proto {
3387
3387
}
3388
3388
}
3389
3389
}
3390
- return " &" if $proto and !$doneok ; # too few args and no ` ;'
3390
+ return " &" if $proto and !$doneok ; # too few args and no ' ;'
3391
3391
return " &" if @args ; # too many args
3392
3392
return (" " , join " , " , @reals );
3393
3393
}
@@ -3862,7 +3862,7 @@ sub pp_const {
3862
3862
if ($op -> private & OPpCONST_ARYBASE) {
3863
3863
return ' $[' ;
3864
3864
}
3865
- # if ($op->private & OPpCONST_BARE) { # trouble with ` =>' autoquoting
3865
+ # if ($op->private & OPpCONST_BARE) { # trouble with ' =>' autoquoting
3866
3866
# return $self->const_sv($op)->PV;
3867
3867
# }
3868
3868
my $sv = $self -> const_sv($op );
@@ -3939,7 +3939,7 @@ sub double_delim {
3939
3939
if (($succeed , $to ) = balanced_delim($to ) and $succeed ) {
3940
3940
return " $from$to " ;
3941
3941
} else {
3942
- for $delim (' /' , ' "' , ' #' ) { # note no `'' -- s''' is special
3942
+ for $delim (' /' , ' "' , ' #' ) { # note no "'" -- s''' is special
3943
3943
return " $from$delim$to$delim " if index ($to , $delim ) == -1;
3944
3944
}
3945
3945
$to =~ s [ /] [ \\ /] g ;
0 commit comments