foo.ini 947 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. o = p
  2. a with spaces = b c
  3. ; wrap in quotes to JSON-decode and preserve spaces
  4. " xa n p " = "\"\r\nyoyoyo\r\r\n"
  5. ; wrap in quotes to get a key with a bracket, not a section.
  6. "[disturbing]" = hey you never know
  7. ; Test arrays
  8. zr[] = deedee
  9. ar[] = one
  10. ar[] = three
  11. ; This should be included in the array
  12. ar = this is included
  13. ; Test resetting of a value (and not turn it into an array)
  14. br = cold
  15. br = warm
  16. ; a section
  17. [a]
  18. av = a val
  19. e = { o: p, a: { av: a val, b: { c: { e: "this [value]" } } } }
  20. j = "{ o: "p", a: { av: "a val", b: { c: { e: "this [value]" } } } }"
  21. "[]" = a square?
  22. ; Nested array
  23. cr[] = four
  24. cr[] = eight
  25. ; nested child without middle parent
  26. ; should create otherwise-empty a.b
  27. [a.b.c]
  28. e = 1
  29. j = 2
  30. ; dots in the section name should be literally interpreted
  31. [x\.y\.z]
  32. x.y.z = xyz
  33. [x\.y\.z.a\.b\.c]
  34. a.b.c = abc
  35. ; this next one is not a comment! it's escaped!
  36. nocomment = this\; this is not a comment