Skip to content

Commit 8c8acad

Browse files
committed
Rewrite the 'globally unique' property to use normative language
1 parent 05ba489 commit 8c8acad

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

spec/formatting.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,14 @@ because although a _variable_ with _name_ `var` occurs before
141141
the expression `{$var}`, the entire declaration `let $var = {$var}`
142142
does not occur before the expression `{$var}`.
143143
144-
Variable names are required to be globally unique. That is,
145-
for any local variable declaration of the form `let $v = e`:
146-
* It is an error if `v` is the left-hand side of a local variable declaration
147-
that appears before `let $v = e` in the message.
148-
* It is also an error if `v` is an externally defined variable.
144+
Any _name_ MUST NOT appear as the _name_ of the _variable_
145+
in more than one _declaration_ within the same message.
146+
If the _variable_ in a _declaration_ also appears
147+
as the _variable_ in a previous _declaration_,
148+
a Variable Redefinition error MUST be emitted.
149+
If the _variable_ in a declaration is also
150+
an externally defined variable,
151+
a Formatting error MUST be emitted.
149152
150153
The resolution of a _variable_ MAY fail if no value is identified for its _name_.
151154
If this happens, an Unresolved Variable error MUST be emitted.

0 commit comments

Comments
 (0)