Extra tweaks due to feedback from kaiwangchen: ; starts comments if at the start of a line

This commit is contained in:
Brian Fraser
2012-11-02 01:58:12 -03:00
parent fdb81f763d
commit 5fd150de31
3 changed files with 11 additions and 1 deletions

View File

@@ -849,6 +849,12 @@ is(
"..and removing comments doesn't leave trailing whitespace"
);
is_deeply(
[ sort keys %{$config->variables} ],
[qw( password something user )],
"start of line comments with # or ; are ignored"
);
# #############################################################################
# Done.
# #############################################################################

View File

@@ -2,3 +2,7 @@
user=mysql # comment
password="password # still part of it!"# comment
something='something ; or # another' # comment
;semicolon="start of line comment with ;"
#pound="start of line comment with #"
;spacecolon
#spacepound