Skip to content

Commit 7580ee9

Browse files
authored
Merge pull request #11752 from dotty-staging/fix-indent-colon
Update -Yindent-colons functionality
2 parents a3d1a67 + 9fd873c commit 7580ee9

File tree

19 files changed

+363
-124
lines changed

19 files changed

+363
-124
lines changed

compiler/src/dotty/tools/dotc/config/Feature.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ object Feature:
2525

2626
val dependent = experimental("dependent")
2727
val erasedDefinitions = experimental("erasedDefinitions")
28-
val symbolLiterals: TermName = deprecated("symbolLiterals")
28+
val symbolLiterals = deprecated("symbolLiterals")
29+
val fewerBraces = experimental("fewerBraces")
2930

3031
/** Is `feature` enabled by by a command-line setting? The enabling setting is
3132
*

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class ScalaSettings extends Settings.SettingGroup with CommonScalaSettings {
121121
val oldSyntax: Setting[Boolean] = BooleanSetting("-old-syntax", "Require `(...)` around conditions.")
122122
val indent: Setting[Boolean] = BooleanSetting("-indent", "Together with -rewrite, remove {...} syntax when possible due to significant indentation.")
123123
val noindent: Setting[Boolean] = BooleanSetting("-no-indent", "Require classical {...} syntax, indentation is not significant.", aliases = List("-noindent"))
124-
val YindentColons: Setting[Boolean] = BooleanSetting("-Yindent-colons", "Allow colons at ends-of-lines to start indentation blocks.")
124+
val YindentColons: Setting[Boolean] = BooleanSetting("-Yindent-colons", "(disabled: use -language:experimental.fewerBraces instead)")
125125

126126
/** Decompiler settings */
127127
val printTasty: Setting[Boolean] = BooleanSetting("-print-tasty", "Prints the raw tasty.", aliases = List("--print-tasty"))

0 commit comments

Comments
 (0)