Update README.md

This commit is contained in:
2025-01-31 17:03:18 +01:00
committed by GitHub
parent 9fe5433781
commit a524b7f5b0

View File

@@ -57,10 +57,11 @@ The format supports the following data types:
- Arrays may only contain one datatype at a time. - Arrays may only contain one datatype at a time.
- Arrays may be of any positive dimension. - Arrays may be of any positive dimension.
- Arrays may be of any positive length. - Arrays may be of any positive length.
- Arrays must be consistent in length within each dimension.
- Arrays may be empty. - Arrays may be empty.
- Example: `array = [5, 6, 10]` - Example: `array = [5, 6, 10]`
- Example: `array2d = [[5, 8], [9, 7], [23, 47]]` - Example: `array2d = [[5, 8], [9, 7], [23, 47]]`
- Example: `array2d = [[9], [50, 3], [54, 12, 46, 37]]` - Example: `array3d = [[[5, 8], [9, 7], [8, 1]], [[9, 1], [1, 4], [7, 6]]]`
- Example: `emptyArray = []` - Example: `emptyArray = []`
### Boolean ### Boolean
@@ -110,6 +111,7 @@ my-value = 5 | Invalid character in key.
[MyOtherSection.Subsection] | "MyOtherSection" has not been defined before. [MyOtherSection.Subsection] | "MyOtherSection" has not been defined before.
myValue = 16 # a comment | Inline comments are not allowed. myValue = 16 # a comment | Inline comments are not allowed.
`array2d = [[9], [50, 3]]` | Lengths of the arrays in the same dimension don't match.
[MyOtherSection] [MyOtherSection]
myArray = [ | Values may not span over multiple lines. myArray = [ | Values may not span over multiple lines.