Skip to content

Commit bb4f150

Browse files
committed
Don't call .''() useless; it's merely inadvisable
1 parent e3c970e commit bb4f150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STD.pm6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3422,7 +3422,7 @@ grammar P6 is STD {
34223422
[ <!{$*QSIGIL}> || <!before '"' <-["]>*? \s > ] # dwim on "$foo."
34233423
<quote>
34243424
[ <?before '(' | '.(' | '\\'> || <.obs('. to concatenate strings or to call a quoted method', '~ to concatenate, or if you meant to call a quoted method, please supply the required parentheses')> ]
3425-
{ my $t = $<quote><nibble>.Str; $t ~~ /\W/ or $t ~~ /^(WHO|WHAT|WHERE|WHEN|WHY|HOW)$/ or.worry("Useless use of quotes") }
3425+
{ my $t = $<quote><nibble>.Str; $t ~~ /\W/ or $t eq '' or $t ~~ /^(WHO|WHAT|WHERE|WHEN|WHY|HOW)$/ or.worry("Useless use of quotes") }
34263426
] <.unsp>?
34273427

34283428
:dba('method arguments')

0 commit comments

Comments
 (0)