diff --git a/flang/documentation/ParserCombinators.md b/flang/documentation/ParserCombinators.md index a6c8d150d8a2..d8031d8bb427 100644 --- a/flang/documentation/ParserCombinators.md +++ b/flang/documentation/ParserCombinators.md @@ -88,7 +88,9 @@ They are `constexpr`, so they should be viewed as type-safe macros. or with a warning if nonstandard usage warnings are enabled. * `deprecated(p)` parses p if strict standard compliance is disabled, with a warning if deprecated usage warnings are enabled. -* `inContext(msg, p)` runs p within an error message context. +* `inContext(msg, p)` runs p within an error message context; any + message that `p` generates will be tagged with `msg` as its + context. Contexts may nest. * `withMessage(msg, p)` succeeds if `p` does, and if it does not, it discards the messages from `p` and fails with the specified message. * `recovery(p, q)` is equivalent to `p || q`, except that error messages