From 817b016b656a683378187d8937bea7c1526e53f5 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Wed, 20 Apr 2022 19:33:52 +0200 Subject: [PATCH] Allow `?` as placeholder as default in Scala213 and Scala212 dialects Fixes https://github.com/scalameta/scalameta/issues/2733 --- .../shared/src/main/scala/scala/meta/dialects/package.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scalameta/dialects/shared/src/main/scala/scala/meta/dialects/package.scala b/scalameta/dialects/shared/src/main/scala/scala/meta/dialects/package.scala index 44f3821469..ae60af29c3 100644 --- a/scalameta/dialects/shared/src/main/scala/scala/meta/dialects/package.scala +++ b/scalameta/dialects/shared/src/main/scala/scala/meta/dialects/package.scala @@ -45,18 +45,19 @@ package object dialects { implicit val Scala212 = Scala211 .withAllowTrailingCommas(true) + .withAllowQuestionMarkPlaceholder(true) implicit val Scala213 = Scala212 .withAllowImplicitByNameParameters(true) .withAllowLiteralTypes(true) .withAllowNumericLiteralUnderscoreSeparators(true) .withAllowTryWithAnyExpr(true) + .withAllowQuestionMarkPlaceholder(true) /** * Dialect starting with Scala 2.13.6 for `-Xsource:3` option */ implicit val Scala213Source3 = Scala213 - .withAllowQuestionMarkPlaceholder(true) .withAllowAsForImportRename(true) .withAllowStarWildcardImport(true) .withAllowOpenClass(true) @@ -69,7 +70,6 @@ package object dialects { * Dialect starting with Scala 2.12.14 for `-Xsource:3` option */ implicit val Scala212Source3 = Scala212 - .withAllowQuestionMarkPlaceholder(true) .withAllowAsForImportRename(true) .withAllowStarWildcardImport(true) .withAllowOpenClass(true)