Open Pike opened 5 years ago
In grammar.js, we have
grammar.js
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 ->.
maybe(blank)
->
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.
-
Identifier
In
grammar.js
, we haveNotably,
maybe(blank)
between the selector and->
.For
that's ok, but
is a syntax error, as
-
is part of theIdentifier
production.