From 9c841891f17d0515f2918809451738a46b420f03 Mon Sep 17 00:00:00 2001 From: Camila Andrea Gonzalez Williamson Date: Thu, 10 Dec 2020 19:50:04 +0100 Subject: [PATCH] Improve soft modifiers docs --- docs/docs/reference/soft-modifier.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/docs/reference/soft-modifier.md b/docs/docs/reference/soft-modifier.md index 14617cb0cbd3..754ddcb009ed 100644 --- a/docs/docs/reference/soft-modifier.md +++ b/docs/docs/reference/soft-modifier.md @@ -9,7 +9,6 @@ TODO this is most likely outdated should at least contain `extension` in additio Worth maintaining? or maybe better refer to internal/syntax.md ? --> -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. +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. It is treated as a potential modifier of a parameter binding unless it is followed by `:`. -