From 9f8cec7f9e13f6a0cbf8e5e986c3dfbffac0be99 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 5 Apr 2015 23:47:04 -0700 Subject: Add a test for issue #1987 --- tests/test1.in | 5 +++++ tests/test1.out | 1 + 2 files changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/test1.in b/tests/test1.in index a66bf598..b9db902a 100644 --- a/tests/test1.in +++ b/tests/test1.in @@ -150,6 +150,11 @@ echo "/bin/echo pipe 12 <&12 12<&-" | source 12<&0 echo "Checking for infinite loops in no-execute" echo "while true; end" | ../fish --no-execute +# Comments allowed in between lines (#1987) +echo before comment \ + # comment + after comment + function always_fails if true return 1 diff --git a/tests/test1.out b/tests/test1.out index d44ae37c..fb5ea8c8 100644 --- a/tests/test1.out +++ b/tests/test1.out @@ -51,4 +51,5 @@ pipe 10 pipe 11 pipe 12 Checking for infinite loops in no-execute +before comment after comment 1 -- cgit v1.2.3