You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside an exprlist (which is the body of a { } expression), semicolons can follow any exprlist (which itself can be empty, meaning ; can float anywhere in there, as we've seen), or be between two expressions
Note this behavior isn't recursive, so just because you open a { scope doesn't mean a semicolon can now magically be anywhere deeply nested inside that scope. It just applies to the first level of the { scope.
I think that at top level semicolons have to be preceded by an expression?
Interestingly, inside a
{
any number of semicolons are blindly consumedIt's possible that semicolons are only valid:
{
scope (but not nested inside one)I also wonder if we should emit semicolons in the parse tree as real tokens. Otherwise it just looks like whitespace to downstream consumers.
The text was updated successfully, but these errors were encountered: