Permalink
Browse files

[STD] worry about extra comma before series operator

git-svn-id: http://svn.pugscode.org/pugs@31428 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent fb4030d commit e856b6dbe407864069ceb80e6d94dc10663c667f lwall committed Jun 24, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 STD.pm6
View
@@ -3994,8 +3994,10 @@ grammar P6 is STD {
{ <sym> » <O(|%loose_unary)> }
## list item separator
- token infix:sym<,>
- { <sym> <O(|%comma, fiddly => 0)> }
+ token infix:sym<,> {
+ <sym> <O(|%comma, fiddly => 0)>
+ [ <?before \h*'...'> <.worry: "Comma found before apparent series operator; please remove comma (or put parens\n around the ... listop, or use 'fail' instead of ...)"> ]?
+ }
token infix:sym<:> {
':' <?before \s | <terminator> >

0 comments on commit e856b6d

Please sign in to comment.