Skip to content

Commit 11050e9

Browse files
committed
Fix syntax documentation
1 parent a7273b5 commit 11050e9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,14 +1574,14 @@ object Parsers {
15741574
/** The block in a quote or splice */
15751575
def stagedBlock() = inBraces(block(simplify = true))
15761576

1577-
/** ExprSplice ::= ‘$’ spliceId if inside quoted block
1578-
* | ‘$’ ‘{’ Block ‘}’) unless inside quoted pattern
1579-
* | ‘$’ ‘{’ Pattern ‘}’) when inside quoted pattern
1577+
/** ExprSplice ::= ‘$’ id if inside quoted block
1578+
* | ‘$’ ‘{’ Block ‘}’ unless inside quoted pattern
1579+
* | ‘$’ ‘{’ Pattern ‘}’ when inside quoted pattern
15801580
*
15811581
* // Deprecated syntax
1582-
* TypeSplice ::= ‘$’ spliceId if inside quoted type
1583-
* | ‘$’ ‘{’ Block ‘}’) unless inside quoted pattern
1584-
* | ‘$’ ‘{’ Pattern ‘}’) when inside quoted pattern
1582+
* TypeSplice ::= ‘$’ id if inside quoted type
1583+
* | ‘$’ ‘{’ Block ‘}’ unless inside quoted type pattern
1584+
* | ‘$’ ‘{’ Pattern ‘}’ when inside quoted type pattern
15851585
*/
15861586
def splice(isType: Boolean): Tree =
15871587
val start = in.offset

0 commit comments

Comments
 (0)