From 86302183bde53d79111d07c79ad60921cf358d1a Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Mon, 17 Oct 2022 12:56:37 +0300 Subject: [PATCH] Add variable resolution section --- spec/formatting.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spec/formatting.md b/spec/formatting.md index 8cf32fce35..7fe7e4a42a 100644 --- a/spec/formatting.md +++ b/spec/formatting.md @@ -7,3 +7,14 @@ when formatting a message for display in a user interface, or for some later pro The document is part of the MessageFormat 2.0 specification, the successor to ICU MessageFormat, henceforth called ICU MessageFormat 1.0. + +## Variable Resolution + +To resolve the value of a Variable, +its Name is used to identify either a local variable, +or a variable defined elsewhere. +If a local variable and an externally defined one use the same name, +the local variable takes precedence. + +It is an error for a local variable definition to +refer to a local variable that's defined after it in the message.