fluent
fluent copied to clipboard
Specify behavior of `{$sel->\n*[def]Val}'
In grammar.js, we have
let SelectExpression = defer(() =>
sequence(
InlineExpression.abstract,
maybe(blank),
string("->"),
maybe(blank_inline),
variant_list.abstract)
.map(keep_abstract)
.chain(list_into(FTL.SelectExpression)));
Notably, maybe(blank) between the selector and ->.
For
good = {PLATFORM()->
*[def] works
}
that's ok, but
bad = {$sel->
*[def] doesn't
}
is a syntax error, as - is part of the Identifier production.