-
-
Notifications
You must be signed in to change notification settings - Fork 35
Description
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 a simple-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 a quoted key, or a quoted-pattern.
The simplest change to avoid this lookahead would probably be to place the open-isolate and close-isolate between the braces, as in {\u2066{hello}\u2069}. In this position, it would also match what's proposed for expression and markup.