summaryrefslogtreecommitdiffhomepage
path: root/toml.html.markdown
diff options
context:
space:
mode:
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": [