diff --git a/draft-marchan-kdl2.html b/draft-marchan-kdl2.html index 0a11666..9a90188 100644 --- a/draft-marchan-kdl2.html +++ b/draft-marchan-kdl2.html @@ -2380,10 +2380,16 @@ individual implementations to determine how to represent KDL numbers.Note that, similar to JSON and some other languages, +

In all cases where the above says that digits "may be separated by _", +this means that between any two digits, or after the digits, any number of +consecutive _ characters can appear. Underscores are not allowed before the digits. +That is, 1___2 and 12____ are valid (and both equivalent to just 12), but +_12 is not a valid number (it will instead parse as an identifier string), +nor is 0x_1a (it will simply be invalid).

+

Note that, similar to JSON and some other languages, numbers without an integer digit (such as .1) are illegal. They must be written with at least one integer digit, like 0.1. -(These patterns are also disallowed from Identifier Strings (Section 3.10), to avoid confusion.)

+(These patterns are also disallowed from Identifier Strings (Section 3.10), to avoid confusion.)

diff --git a/draft-marchan-kdl2.txt b/draft-marchan-kdl2.txt index 3f16d46..c8368ab 100644 --- a/draft-marchan-kdl2.txt +++ b/draft-marchan-kdl2.txt @@ -869,6 +869,14 @@ Table of Contents - They may optionally be followed by E or e, an optional - or +, and more digits, to represent an exponent value. + In all cases where the above says that digits "may be separated by + _", this means that between any two digits, or after the digits, any + number of consecutive _ characters can appear. Underscores are not + allowed _before_ the digits. That is, 1___2 and 12____ are valid + (and both equivalent to just 12), but _12 is _not_ a valid number (it + will instead parse as an identifier string), nor is 0x_1a (it will + simply be invalid). + Note that, similar to JSON and some other languages, numbers without an integer digit (such as .1) are illegal. They must be written with at least one integer digit, like 0.1. (These patterns are also diff --git a/index.html b/index.html index 21a0c8e..0f49581 100644 --- a/index.html +++ b/index.html @@ -46,7 +46,7 @@ KDL plain text - same as main + diff with main