1
0
mirror of https://github.com/benhoyt/inih.git synced 2025-02-05 07:08:23 +08:00
inih/tests/normal.ini
benhoyt@gmail.com d1939f4857 Fix issue 5:
* ';' comments must have ';' preceded by whitespace char
* add '#' comments as per Python's ConfigParser
* added unit tests for the above
2010-09-27 13:56:09 +00:00

21 lines
511 B
INI

; This is an INI file
[section1] ; section comment
one=This is a test ; name=value comment
two = 1234
; x=y
[ section 2 ]
happy = 4
sad =
[empty]
; do nothing
[comment_test]
test1 = 1;2;3 ; only this will be a comment
test2 = 2;3;4;this won't be a comment, needs whitespace before ';'
test;3 = 345 ; key should be "test;3"
test4 = 4#5#6 ; '#' only starts a comment at start of line
#test5 = 567 ; entire line commented
# test6 = 678 ; entire line commented, except in MULTILINE mode