diff options
Diffstat (limited to 'examples/incorrect.ini')
| -rw-r--r-- | examples/incorrect.ini | 27 |
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 |
