You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/soft-modifier.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,6 @@ TODO this is most likely outdated should at least contain `extension` in additio
9
9
Worth maintaining? or maybe better refer to internal/syntax.md ?
10
10
-->
11
11
12
-
It is treated as a potential modifier of a definition, if it is followed by a hard modifier or a keyword combination starting a definition (`def`, `val`, `var`, `type`, `class`, `case class`, `trait`, `object`, `case object`, `enum`). Between the two words there may be a sequence of newline tokens and soft modifiers.
12
+
It is treated as a potential modifier of a definition if it is followed by a hard modifier or a keyword combination starting a definition (`def`, `val`, `var`, `type`, `given`, `class`, `trait`, `object`, `enum`, `case class`, `case object`). Between the two words there may be a sequence of newline tokens and soft modifiers. In addition, `inline` is a keyword for `inline if`, `inline ... match`, and inline parameters.
13
13
14
14
It is treated as a potential modifier of a parameter binding unless it is followed by `:`.
0 commit comments