aboutsummaryrefslogtreecommitdiff
path: root/examples/incorrect.ini
diff options
context:
space:
mode:
authorClecio Jung2023-03-23 17:10:31 -0300
committerClecio Jung2023-03-23 17:10:31 -0300
commit629d03b079b29f6d5178c407537aa15f9d109ec8 (patch)
tree801cbdde1d0bce5181b99d0fa741f6134cd4981d /examples/incorrect.ini
parent308925f81dcac05471e818865a94061f3421f217 (diff)
downloadlibini-629d03b079b29f6d5178c407537aa15f9d109ec8.tar.xz
libini-629d03b079b29f6d5178c407537aa15f9d109ec8.tar.zst
Sorting sections and properties
Diffstat (limited to 'examples/incorrect.ini')
-rw-r--r--examples/incorrect.ini27
1 files changed, 19 insertions, 8 deletions
diff --git a/examples/incorrect.ini b/examples/incorrect.ini
index 5f8e285..06c474f 100644
--- a/examples/incorrect.ini
+++ b/examples/incorrect.ini
@@ -1,18 +1,20 @@
- # Test a comment
+# This is the global scope, where properties are sab=ved in a global section
+
+ # A comment
# a = 5
-a = 1
- ; Test another type of comment
+ ; Another type of comment
; b = 3
- b = 2 ; comment
c = a+b # comment
+ b = 2 ; comment
+a = 1
[ section 1 ]
test=2
beta=96
# We allow for spaces and special characters inside values, but not on keys
-erro r = 56
-correct = al bel gam
+erro r = 56 ; spaces inside keys are not allowed
+correct = al bel gam ; spaces inside values are allowed
# Section names can have special characters and spaces
[ section 2 ]
@@ -25,10 +27,19 @@ a = ; 15
alpha = beta
+[repeated] ; Properties inside repeated sections are stored in the same section
+asf = 5
+invalid = 2
+invalid = 8 ; Repeated keys are not allowed
+
[section 3
-[section 4] dfg
+; Characters after the end of the declaration of new sections are ignored
+[section 4] dfg
[numbers]
integer = 25
-real = 2.8e-3 \ No newline at end of file
+real = 2.8e-3
+
+[repeated] ; Properties inside repeated sections are stored in the same section
+asd = 2