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
@@ -83,29 +83,49 @@ comment ::= ‘/*’ “any sequence of characters; nested comments ar
83
83
84
84
nl ::= “new line character”
85
85
semi ::= ‘;’ | nl {nl}
86
-
colonEol ::= ": at end of line that can start a template body"
87
86
```
88
87
88
+
89
+
## Optional Braces
90
+
91
+
The lexical analyzer also inserts `indent` and `outdent` tokens that represent regions of indented code [at certain points](../reference/other-new-features-indentation.html)
92
+
93
+
In the context-free productions below we use the notation `<<< ts >>>`
94
+
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
95
+
notation `:<<< ts >>>` indicates a token sequence `ts` that is either enclosed in a pair of braces `{ ts }` or that constitutes an indented region `indent ts outdent` that follows
96
+
a `:` at the end of a line.
97
+
98
+
99
+
```
100
+
<<< ts >>> ::= ‘{’ ts ‘}’
101
+
| indent ts outdent
102
+
:<<< ts >>> ::= [nl] ‘{’ ts ‘}’
103
+
| `:` indent ts outdent
104
+
89
105
## Keywords
90
106
91
107
### Regular keywords
92
108
93
109
```
94
-
abstract case catch class def do else enum
95
-
exportextends false final finally for given if
96
-
implicit import lazymatch new null object package
97
-
privateprotected override returnsuper sealed then throw
Copy file name to clipboardExpand all lines: docs/docs/reference/syntax.md
+21-12Lines changed: 21 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -83,14 +83,23 @@ comment ::= ‘/*’ “any sequence of characters; nested comments ar
83
83
84
84
nl ::= “new line character”
85
85
semi ::= ‘;’ | nl {nl}
86
-
colonEol ::= ": at end of line that can start a template body"
87
86
```
88
87
88
+
## Optional Braces
89
+
89
90
The lexical analyzer also inserts `indent` and `outdent` tokens that represent regions of indented code [at certain points](../reference/other-new-features-indentation.html)
90
91
91
92
In the context-free productions below we use the notation `<<< ts >>>`
92
-
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`.
93
+
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
94
+
notation `:<<< ts >>>` indicates a token sequence `ts` that is either enclosed in a pair of braces `{ ts }` or that constitutes an indented region `indent ts outdent` that follows
0 commit comments