Skip to content

Commit afe3d2f

Browse files
committed
Fix newline insertion with imports ending with given
1 parent d2cbcc0 commit afe3d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ object Tokens extends TokensCommon {
254254
AT, CASE)
255255

256256
final val canEndStatTokens: TokenSet = atomicExprTokens | BitSet(
257-
TYPE, RPAREN, RBRACE, RBRACKET, OUTDENT)
257+
TYPE, GIVEN, RPAREN, RBRACE, RBRACKET, OUTDENT)
258258

259259
/** Tokens that stop a lookahead scan search for a `<-`, `then`, or `do`.
260260
* Used for disambiguating between old and new syntax.

0 commit comments

Comments
 (0)