8000 Update soft-modifier.md · Husenap/docs.scala-lang@d1be7c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit d1be7c2

Browse files
authored
Update soft-modifier.md
Add missing 'as' in the list of soft keywords
1 parent 8bbce58 commit d1be7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_scala3-reference/soft-modifier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Soft Keywords
66

77
A soft modifier is one of the identifiers `opaque`, `inline`, `open`, `transparent`, and `infix`.
88

9-
A soft keyword is a soft modifier, or one of `derives`, `end`, `extension`, `using`, `|`, `+`, `-`, `*`
9+
A soft keyword is a soft modifier, or one of `as`, `derives`, `end`, `extension`, `using`, `|`, `+`, `-`, `*`
1010

1111
A soft modifier is treated as 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.
1212

0 commit comments

Comments
 (0)
0