[FEEDBACK] Isolating quoted patterns on the outside adds a lookahead to the syntax #787
Labels
Preview-Feedback
Feedback gathered during the technical preview
syntax
Issues related with MF Syntax
An observation from implementing bidi isolation as proposed in #781, but which also applies to the currently proposed design for bidi usability:
Isolating quoted patterns on the outside adds LRI, RLI & FSI to the set of characters (currently
{
and.
) that could start a quoted message with no declarations, as in\u2066{{hello}}\u2069
.This doesn't make the syntax ambiguous as the
{{
isn't valid in asimple-message
, but it does add a lookahead of one token to the parser.The same lookahead is also required in
variant
, to determine whether a\u2066
starts aquoted
key
, or aquoted-pattern
.The simplest change to avoid this lookahead would probably be to place the
open-isolate
andclose-isolate
between the braces, as in{\u2066{hello}\u2069}
. In this position, it would also match what's proposed forexpression
andmarkup
.The text was updated successfully, but these errors were encountered: