You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/SPECIFICATION.html
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@
54
54
55
55
Keywords and built-in names MUST be matched case-sensitively and MUST be written in their canonical uppercase forms. If a reserved word is written in any other case, it MUST be tokenized as an identifier instead.
56
56
57
-
The character `-` MUST be interpreted only as the leading sign of a numeric literal. Any unsupported use of `-` MUST raise a syntax error.
57
+
The character `-` MUST introduce a negative numeric literal when it is followed, optionally after horizontal whitespace, by a `0`-prefixed numeric base marker. The exact spelling `-INF` MUST remain reserved for negative infinity, and the exact spelling `-NaN` MUST remain invalid. In all other cases, `-` MAY participate in identifiers subject to [2.3](#23-identifiers).
58
58
59
59
The character `~` MUST be reserved for coerced function parameters and MUST NOT appear inside identifiers.
60
60
@@ -64,9 +64,9 @@
64
64
65
65
Identifiers MUST be non-empty and case-sensitive. Variables and user-defined functions share a single flat namespace, so one name MUST NOT denote both a variable and a function. A user-defined function name MUST NOT conflict with any built-in operator or function name.
66
66
67
-
Identifiers MUST NOT contain non-ASCII characters or any of the following characters: `{`, `}`, `[`, `]`, `(`, `)`, `=`, `,`, `!`, `~`, or `@`. The first character of an identifier MUST NOT be `0`.
67
+
Identifiers MUST NOT contain non-ASCII characters or any of the following characters: `{`, `}`, `[`, `]`, `(`, `)`, `=`, `,`, `!`, `~`, or `@`. The first character of an identifier MUST NOT be `0`, and the first two characters of an identifier MUST NOT be `-0`.
68
68
69
-
The first identifier character MAY be a letter `A-Z` or `a-z`, a decimal digit `1-9`, or one of `/`, `$`, `%`, `&`, `_`, `+`, `|`,or `?`.SubsequentidentifiercharactersMAYadditionallyincludethedigit `0`.ThispermissiveASCII-onlycharactersetpreservesanunambiguousdistinctionbetweenidentifiersandnumericliterals,whichMUSTbeginwitha `0`-prefixedbasemarker.
69
+
The first identifier character MAY be a letter `A-Z` or `a-z`, a decimal digit `1-9`, `*`, or one of `/`, `$`, `%`, `&`, `_`, `+`, `|`,`?`,or `-`.Ifthefirstidentifiercharacteris `-`,thesecondcharacterMAYbeanyotherwisevalididentifiercharacterexcept `0`.SubsequentidentifiercharactersMAYadditionallyincludethedigit `0`, `*`,and `-`.Theexactspelling `-INF` isreservedby[4.3.2](#432-special-values).ThispermissiveASCII-onlycharactersetpreservesanunambiguousdistinctionbetweenidentifiersandnumericliterals,whichMUSTbeginwitha `0`-prefixedbasemarker.
0 commit comments