Closed trevor closed 10 years ago
The semicolon is considered a comment character by default. So the invalid case truly is invalid since the \
character is part of the comment and it is not considered a newline continuation.
Your third case above is valid because the semicolon is inside a quoted string and not considered a comment character.
You can make that fourth case valid either by escaping the semicolon:
three = hello\; \
multiline
or by configuring the IniFile parser to treat semicolons as a regular character:
inifile = IniFile.new(:filename => "file.ini", :comment => "#")
Valid:
Valid:
Valid:
Invalid: