Skip to content

Commit ec94bc4

Browse files
authored
Merge pull request #10748 from camilaagw/improve-docs-soft-modifiers
Improve soft modifiers docs
2 parents 7a1f148 + 9c84189 commit ec94bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/soft-modifier.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ TODO this is most likely outdated should at least contain `extension` in additio
99
Worth maintaining? or maybe better refer to internal/syntax.md ?
1010
-->
1111

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.
1313

1414
It is treated as a potential modifier of a parameter binding unless it is followed by `:`.

0 commit comments

Comments
 (0)