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
Copy file name to clipboardExpand all lines: docs/_docs/reference/syntax.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,10 @@ semi ::= ‘;’ | nl {nl}
105
105
106
106
## Optional Braces
107
107
108
-
The lexical analyzer also inserts `indent` and `outdent` tokens that represent regions of indented code [at certain points](./other-new-features/indentation.md).
108
+
The principle of optional braces is that any keyword that can be followed by `{` can also be followed by an indented block, without needing an intervening `:`.
109
+
(Allowing an optional `:` would be counterproductive since it would introduce several ways to do the same thing.)
110
+
111
+
The lexical analyzer inserts `indent` and `outdent` tokens that represent regions of indented code [at certain points](./other-new-features/indentation.md).
109
112
110
113
In the context-free productions below we use the notation `<<< ts >>>`
111
114
to indicate a token sequence `ts` that is either enclosed in a pair of braces `{ ts }` or that constitutes an indented region `indent ts outdent`. Analogously, the
0 commit comments