@@ -454,7 +454,7 @@ because otherwise the underscore would be considered part of the name.
454454SimpleExpr ::= SimpleExpr TypeArgs
455455```
456456
457- A type application ` $e$[$T_1 , \ldots , T_n$] ` instantiates
457+ A _ type application _ ` $e$[$T_1 , \ldots , T_n$] ` instantiates
458458a polymorphic value $e$ of type
459459` [$a_1$ >: $L_1$ <: $U_1, \ldots , a_n$ >: $L_n$ <: $U_n$]$S$ `
460460with argument types
@@ -480,7 +480,7 @@ and the expected result type.
480480SimpleExpr ::= `(' [Exprs] `)'
481481```
482482
483- A tuple expression ` ($e_1 , \ldots , e_n$) ` is an alias
483+ A _ tuple expression _ ` ($e_1 , \ldots , e_n$) ` is an alias
484484for the class instance creation
485485` scala.Tuple$n$($e_1 , \ldots , e_n$) ` , where $n \geq 2$.
486486The empty tuple
@@ -492,7 +492,7 @@ The empty tuple
492492SimpleExpr ::= `new' (ClassTemplate | TemplateBody)
493493```
494494
495- A simple instance creation expression is of the form
495+ A _ simple instance creation expression _ is of the form
496496` new $c$ `
497497where $c$ is a [ constructor invocation] ( 05-classes-and-objects.html#constructor-invocations ) . Let $T$ be
498498the type of $c$. Then $T$ must
@@ -515,7 +515,7 @@ The expression is evaluated by creating a fresh
515515object of type $T$ which is initialized by evaluating $c$. The
516516type of the expression is $T$.
517517
518- A general instance creation expression is of the form
518+ A _ general instance creation expression _ is of the form
519519` new $t$ ` for some [ class template] ( 05-classes-and-objects.html#templates ) $t$.
520520Such an expression is equivalent to the block
521521
@@ -560,7 +560,7 @@ BlockExpr ::= ‘{’ CaseClauses ‘}’
560560Block ::= BlockStat {semi BlockStat} [ResultExpr]
561561```
562562
563- A block expression ` {$s_1$; $\ldots$; $s_n$; $e\,$} ` is
563+ A _ block expression _ ` {$s_1$; $\ldots$; $s_n$; $e\,$} ` is
564564constructed from a sequence of block statements $s_1 , \ldots , s_n$
565565and a final expression $e$. The statement sequence may not contain
566566two definitions or declarations that bind the same name in the same
@@ -715,7 +715,7 @@ name.
715715
716716### Assignment Operators
717717
718- An assignment operator is an operator symbol (syntax category
718+ An _ assignment operator _ is an operator symbol (syntax category
719719` op ` in [ Identifiers] ( 01-lexical-syntax.html#identifiers ) ) that ends in an equals character
720720“` = ` ”, with the exception of operators for which one of
721721the following conditions holds:
@@ -754,7 +754,7 @@ The re-interpretation occurs if the following two conditions are fulfilled.
754754Expr1 ::= PostfixExpr `:' CompoundType
755755```
756756
757- The typed expression $e: T$ has type $T$. The type of
757+ The _ typed expression _ $e: T$ has type $T$. The type of
758758expression $e$ is expected to conform to $T$. The result of
759759the expression is the value of $e$ converted to type $T$.
760760
@@ -773,7 +773,7 @@ Here are examples of well-typed and ill-typed expressions.
773773Expr1 ::= PostfixExpr `:' Annotation {Annotation}
774774```
775775
776- An annotated expression ` $e$: @$a_1$ $\ldots$ @$a_n$ `
776+ An _ annotated expression _ ` $e$: @$a_1$ $\ldots$ @$a_n$ `
777777attaches [ annotations] ( 11-annotations.html#user-defined-annotations ) $a_1 , \ldots , a_n$ to the
778778expression $e$.
779779
@@ -868,7 +868,7 @@ def matmul(xss: Array[Array[Double]], yss: Array[Array[Double]]) = {
868868Expr1 ::= `if' `(' Expr `)' {nl} Expr [[semi] `else' Expr]
869869```
870870
871- The conditional expression ` if ($e_1$) $e_2$ else $e_3$ ` chooses
871+ The _ conditional expression _ ` if ($e_1$) $e_2$ else $e_3$ ` chooses
872872one of the values of $e_2$ and $e_3$, depending on the
873873value of $e_1$. The condition $e_1$ is expected to
874874conform to type ` Boolean ` . The then-part $e_2$ and the
@@ -894,7 +894,7 @@ evaluated as if it was `if ($e_1$) $e_2$ else ()`.
894894Expr1 ::= `while' `(' Expr ')' {nl} Expr
895895```
896896
897- The while loop expression ` while ($e_1$) $e_2$ ` is typed and
897+ The _ while loop expression _ ` while ($e_1$) $e_2$ ` is typed and
898898evaluated as if it was an application of ` whileLoop ($e_1$) ($e_2$) ` where
899899the hypothetical function ` whileLoop ` is defined as follows.
900900
@@ -909,7 +909,7 @@ def whileLoop(cond: => Boolean)(body: => Unit): Unit =
909909Expr1 ::= `do' Expr [semi] `while' `(' Expr ')'
910910```
911911
912- The do loop expression ` do $e_1$ while ($e_2$) ` is typed and
912+ The _ do loop expression _ ` do $e_1$ while ($e_2$) ` is typed and
913913evaluated as if it was the expression ` ($e_1$ ; while ($e_2$) $e_1$) ` .
914914A semicolon preceding the ` while ` symbol of a do loop expression is ignored.
915915
@@ -923,9 +923,9 @@ Generator ::= Pattern1 `<-' Expr {[semi] Guard | semi Pattern1 `=' Expr}
923923Guard ::= `if' PostfixExpr
924924```
925925
926- A for loop ` for ($\mathit{enums}\,$) $e$ ` executes expression $e$
927- for each binding generated by the enumerators $\mathit{enums}$. A for
928- comprehension ` for ($\mathit{enums}\,$) yield $e$ ` evaluates
926+ A _ for loop _ ` for ($\mathit{enums}\,$) $e$ ` executes expression $e$
927+ for each binding generated by the enumerators $\mathit{enums}$.
928+ A _ for comprehension _ ` for ($\mathit{enums}\,$) yield $e$ ` evaluates
929929expression $e$ for each binding generated by the enumerators $\mathit{enums}$
930930and collects the results. An enumerator sequence always starts with a
931931generator; this can be followed by further generators, value
@@ -1067,7 +1067,7 @@ The code above makes use of the fact that `map`, `flatMap`,
10671067Expr1 ::= `return' [Expr]
10681068```
10691069
1070- A return expression ` return $e$ ` must occur inside the body of some
1070+ A _ return expression _ ` return $e$ ` must occur inside the body of some
10711071enclosing named method or function. The innermost enclosing named
10721072method or function in a source program, $f$, must have an explicitly declared result type,
10731073and the type of $e$ must conform to it.
@@ -1104,7 +1104,7 @@ and will propagate up the call stack.
11041104Expr1 ::= `throw' Expr
11051105```
11061106
1107- A throw expression ` throw $e$ ` evaluates the expression
1107+ A _ throw expression _ ` throw $e$ ` evaluates the expression
11081108$e$. The type of this expression must conform to
11091109` Throwable ` . If $e$ evaluates to an exception
11101110reference, evaluation is aborted with the thrown exception. If $e$
@@ -1122,7 +1122,7 @@ Expr1 ::= `try' (`{' Block `}' | Expr) [`catch' `{' CaseClauses `}']
11221122 [`finally' Expr]
11231123```
11241124
1125- A try expression is of the form ` try { $b$ } catch $h$ `
1125+ A _ try expression _ is of the form ` try { $b$ } catch $h$ `
11261126where the handler $h$ is a
11271127[ pattern matching anonymous function] ( 08-pattern-matching.html#pattern-matching-anonymous-functions )
11281128
@@ -1311,7 +1311,7 @@ TemplateStat ::= Import
13111311 |
13121312```
13131313
1314- Statements occur as parts of blocks and templates. A statement can be
1314+ Statements occur as parts of blocks and templates. A _ statement _ can be
13151315an import, a definition or an expression, or it can be empty.
13161316Statements used in the template of a class definition can also be
13171317declarations. An expression that is used as a statement can have an
0 commit comments