Do not count '\' in comment as line continuation (#2181)

fixes #2176
This commit is contained in:
Johannes Lange
2016-05-08 00:20:08 +02:00
committed by Michael Stapelberg
parent 6746aa4b5f
commit a8757625c3
3 changed files with 33 additions and 4 deletions

View File

@ -198,4 +198,20 @@ EOT
is(launch_get_border($config), 'none', 'no border');
#####################################################################
# test ignoring of line continuation within a comment
#####################################################################
$config = <<'EOT';
# i3 config file (v4)
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
set $vartest \"special title\"
for_window [title="$vartest"] border pixel 1
# this line is not continued, so the following is not contained in this comment\
for_window [title="$vartest"] border none
EOT
is(launch_get_border($config), 'none', 'no border');
done_testing;