Index: src/OFINISection.m ================================================================== --- src/OFINISection.m +++ src/OFINISection.m @@ -152,11 +152,11 @@ [super dealloc]; } - (void)of_parseLine: (OFString *)line { - if (![line hasPrefix: @";"]) { + if (![line hasPrefix: @";"] && ![line hasPrefix: @"#"]) { OFINISectionPair *pair; OFString *key, *value; size_t pos; pair = [[[OFINISectionPair alloc] init] autorelease]; Index: tests/OFINIFileTests.m ================================================================== --- tests/OFINIFileTests.m +++ tests/OFINIFileTests.m @@ -119,11 +119,11 @@ @"foobar=baz\r\n" @";comment\r\n" @"new=new\r\n" @"\r\n" @"[foobar]\r\n" - @";foobarcomment\r\n" + @"#foobarcomment\r\n" @"qux=\" asd\"\r\n" @"quxquxqux=\"hello\\\"wörld\"\r\n" @"qux2=\"a\\f\"\r\n" @"qux3=a\fb\r\n" @"\r\n" Index: tests/testfile.ini ================================================================== --- tests/testfile.ini +++ tests/testfile.ini @@ -5,11 +5,11 @@ foo = bar foobar=baz ;comment [foobar] -;foobarcomment +#foobarcomment qux=" asd" "quxqux " = asd quxquxqux="hello\"wörld" qux2="a\f"