Skip to content

Commit 3078860

Browse files
committed
Fix accidentaly removed .nn call and remove -release from forbidden options
1 parent 0b45f44 commit 3078860

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/interactive/Completion.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ object Completion:
252252
// https://github.com/scalameta/metals/blob/main/mtags/src/main/scala/scala/meta/internal/mtags/KeywordWrapper.scala
253253
// https://github.com/com-lihaoyi/Ammonite/blob/73a874173cd337f953a3edc9fb8cb96556638fdd/amm/util/src/main/scala/ammonite/util/Model.scala
254254
private def needsBacktick(s: String) =
255-
val chunks = s.split("_", -1)
255+
val chunks = s.split("_", -1).nn
256256

257257
val validChunks = chunks.zipWithIndex.forall { case (chunk, index) =>
258258
chunk.nn.forall(Chars.isIdentifierPart) ||

presentation-compiler/src/main/dotty/tools/pc/ScalaPresentationCompiler.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ case class ScalaPresentationCompiler(
5858
val scalaVersion = BuildInfo.scalaVersion
5959

6060
private val forbiddenOptions = Set("-print-lines", "-print-tasty")
61-
private val forbiddenDoubleOptions = Set("-release")
61+
private val forbiddenDoubleOptions = Set.empty[String]
6262

6363
given ReportContext =
6464
folderPath

0 commit comments

Comments
 (0)