Skip to content

Commit 72d1bca

Browse files
committed
Improve soft modifiers docs
1 parent b9f9347 commit 72d1bca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/docs/reference/soft-modifier.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +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`, `class`, `trait`, `object`, `enum`, `given`). 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 `:`.
15-

0 commit comments

Comments
 (0)