summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-03-10 00:17:15 -0800
committerRyan Dahl <ry@tinyclouds.org>2010-03-10 21:44:59 -0800
commit976983960d69cb8aac8327880b0f3c1ef28ff81f (patch)
tree6ced81f45f610e67a97ba915f54c328b2088cece /test/fixtures
parent70b2a44579393139603dbef8500e5efd3f34200e (diff)
downloadnode-new-976983960d69cb8aac8327880b0f3c1ef28ff81f.tar.gz
More ini parser features.
Update the ini parser to support some more whitespace cases, turn lines without an equal sign into a "flag" that's just true if set, and support comments.
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/fixture.ini10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/fixtures/fixture.ini b/test/fixtures/fixture.ini
index 674e45d7f6..dcf1348a45 100644
--- a/test/fixtures/fixture.ini
+++ b/test/fixtures/fixture.ini
@@ -1,10 +1,18 @@
+; a comment
root=something
+url = http://example.com/?foo=bar
+
+ [ the section with whitespace ]
+this has whitespace = yep ; and a comment; and then another
+
+ just a flag, no value.
+
[section]
one=two
Foo=Bar
this=Your Mother!
-blank=
+blank=
[Section Two]
something else=blah