cloudsmith/geppetto — Issue #257: missing comma between selector entries
Author: hlindberg
Created: 2011-12-23 13:05:49+00:00
State: open

A missing comma between selector entries causes parser to not recognize the selector expression.

$a = $b ? {
'x' => 'y'
'y' => 'x'
}

The missing comma after 'x'=>'y' causes $a to be marked as "not a top level expression, because the rest (starting with '=') does not parse as something valid.

Make the separating ',' optional in the grammar and validate that it is present.