summaryrefslogtreecommitdiffhomepage
path: root/toml.html.markdown
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2024-04-04 04:26:14 -0700
committerGitHub <noreply@github.com>2024-04-04 04:26:14 -0700
commit4d59048f0df8441e5ad2c2c440e8d54b0e9c11b6 (patch)
treefa2dbdd40da35b3c27f928f1112ea43193a7482e /toml.html.markdown
parentb38d4437120e700646a45dff68b7c4ff3f7109c0 (diff)
parent327001f58739489b41f6b1f7bbc8be900847b381 (diff)
Merge branch 'master' into patch-2
Diffstat (limited to 'toml.html.markdown')
-rw-r--r--[-rwxr-xr-x]toml.html.markdown11
1 files changed, 9 insertions, 2 deletions
diff --git a/toml.html.markdown b/toml.html.markdown
index 2b234965..69dfd754 100755..100644
--- a/toml.html.markdown
+++ b/toml.html.markdown
@@ -69,11 +69,15 @@ The first newline is trimmed in raw strings.
###########
## Integers can start with a +, a - or nothing.
-## Leading zeros are not allowed. Hex, octal, and binary forms are not allowed.
+## Leading zeros are not allowed.
+## Hex, octal, and binary forms are allowed.
## Values that cannot be expressed as a series of digits are not allowed.
int1 = +42
int2 = 0
int3 = -21
+int4 = 0xdeadbeef
+int5 = 0o755
+int6 = 0b11011100
integerRange = 64
## You can use underscores to enhance readability. Each
@@ -225,6 +229,7 @@ sku = 284758393
color = "gray"
```
The equivalent in JSON would be:
+
```json
{
"products": [
@@ -270,8 +275,10 @@ The equivalent in JSON would be:
note = "I am an array item in banana fruit's table/map"
```
+
The equivalent in JSON would be:
-```json
+
+```
{
"fruit": [