Skip to content

Commit 055f66b

Browse files
committed
Fix syntax documentation
1 parent 435c8ff commit 055f66b

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
@@ -1572,14 +1572,14 @@ object Parsers {
15721572
/** The block in a quote or splice */
15731573
def stagedBlock() = inBraces(block(simplify = true))
15741574

1575-
/** ExprSplice ::= ‘$’ spliceId if inside quoted block
1576-
* | ‘$’ ‘{’ Block ‘}’) unless inside quoted pattern
1577-
* | ‘$’ ‘{’ Pattern ‘}’) when inside quoted pattern
1575+
/** ExprSplice ::= ‘$’ id if inside quoted block
1576+
* | ‘$’ ‘{’ Block ‘}’ unless inside quoted pattern
1577+
* | ‘$’ ‘{’ Pattern ‘}’ when inside quoted pattern
15781578
*
15791579
* // Deprecated syntax
1580-
* TypeSplice ::= ‘$’ spliceId if inside quoted type
1581-
* | ‘$’ ‘{’ Block ‘}’) unless inside quoted pattern
1582-
* | ‘$’ ‘{’ Pattern ‘}’) when inside quoted pattern
1580+
* TypeSplice ::= ‘$’ id if inside quoted type
1581+
* | ‘$’ ‘{’ Block ‘}’ unless inside quoted type pattern
1582+
* | ‘$’ ‘{’ Pattern ‘}’ when inside quoted type pattern
15831583
*/
15841584
def splice(isType: Boolean): Tree =
15851585
val start = in.offset

0 commit comments

Comments
 (0)