From: Michael Stapelberg Date: Tue, 2 Apr 2013 20:24:52 +0000 (+0200) Subject: t/201-config-parser: add test for quotes in comments X-Git-Tag: 4.6~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bfc2cbc69abc7866de6f03489c63dc27ca89847c;p=i3%2Fi3 t/201-config-parser: add test for quotes in comments --- diff --git a/testcases/t/201-config-parser.t b/testcases/t/201-config-parser.t index 6a49ff78..151103d7 100644 --- a/testcases/t/201-config-parser.t +++ b/testcases/t/201-config-parser.t @@ -448,6 +448,21 @@ is(parser_calls($config), $expected, '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