Skip to content

Commit 276a42f

Browse files
committed
Warn on apparent term following baremeth
1 parent fa59c1b commit 276a42f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

STD.pm6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3511,6 +3511,7 @@ grammar P6 is STD {
35113511
| ':' <?before \s | '{'> <!{ $*QSIGIL }> <arglist>
35123512
| <?[\\(]> <args>
35133513
| { @*MEMOS[$¢.pos]<baremeth> = 1 }
3514+
[ <?before \s+ [ \d | <sigil><twigil>?\w ] > <.worry: "Colon (or parens) required for method name with arguments"> ]?
35143515
]?
35153516
}
35163517

0 commit comments

Comments
 (0)