t/201-config-parser: add test for quotes in comments
This commit is contained in:
parent
7f5a18e093
commit
bfc2cbc69a
|
@ -448,6 +448,21 @@ is(parser_calls($config),
|
||||||
$expected,
|
$expected,
|
||||||
'errors dont harm subsequent statements');
|
'errors dont harm subsequent statements');
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Regression: semicolons end comments, but shouldn’t
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
$config = <<'EOT';
|
||||||
|
# "foo" client.focused #4c7899 #285577 #ffffff #2e9ef4
|
||||||
|
EOT
|
||||||
|
|
||||||
|
$expected = <<'EOT';
|
||||||
|
|
||||||
|
EOT
|
||||||
|
|
||||||
|
is(parser_calls($config),
|
||||||
|
$expected,
|
||||||
|
'semicolon does not end a comment line');
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Error message with 2+2 lines of context
|
# Error message with 2+2 lines of context
|
||||||
|
|
Loading…
Reference in New Issue