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: doc/spec.adoc
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -301,10 +301,11 @@ fragment EXP
301
301
;
302
302
----
303
303
304
-
Number literals follow the same syntax rules as numeric values in JSON with two exceptions:
304
+
Number literals follow the same syntax rules as numeric values in JSON with three exceptions:
305
305
306
306
1. Number literals may omit a leading zero. For example, `.123` is not valid JSON, but is allowed as a number literal.
307
-
2. The grammar construction for a number literal does not include a minus sign. Literal expressions are made negative by prefixing them with a unary minus.
307
+
2. Number literals may include a leading zero. For example, `0123` is not valid JSON, but is allowed as a number literal.
308
+
3. The grammar construction for a number literal does not include a minus sign. Literal expressions are made negative by prefixing them with a unary minus.
308
309
309
310
Note that number literals (and JSON numbers) allow scientific notation.
0 commit comments