aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/lexer
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-25 15:17:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-25 15:17:01 +0200
commit757f42e7dea94f8b79b3d55074dedeafd853ddc5 (patch)
tree8fa27fd27e36a85a6348d85b746d49a676a27027 /unit-tests/lexer
parenta3dad2118fb3925ef4f9baa90cea0dfd44ca93c6 (diff)
Implement literal here-document support
Diffstat (limited to 'unit-tests/lexer')
-rw-r--r--unit-tests/lexer/comment.test24
-rw-r--r--unit-tests/lexer/quoting.test4
2 files changed, 14 insertions, 14 deletions
diff --git a/unit-tests/lexer/comment.test b/unit-tests/lexer/comment.test
index 07d7ac5..65e768c 100644
--- a/unit-tests/lexer/comment.test
+++ b/unit-tests/lexer/comment.test
@@ -59,34 +59,34 @@ EOO
#
$* <<EOI >>:EOO # multi-only
-#\\
+#\
comment
comment
-#\\
+#\
EOI
EOO
$* <<EOI >>:EOO # multi-empty
-#\\
-#\\
+#\
+#\
EOI
EOO
$* <<EOI >>EOO # multi-start-same
-foo #\\
+foo #\
comment
comment
-#\\
+#\
EOI
'foo'
<newline>
EOO
$* <<EOI >>EOO # multi-end-same
-#\\
+#\
comment
comment
-foo #\\
+foo #\
bar
EOI
'bar'
@@ -94,10 +94,10 @@ EOI
EOO
$* <<EOI >>EOO # multi-end-not
-#\\
+#\
comment
-#\\ not an end
-foo #\\
+#\ not an end
+foo #\
bar
EOI
'bar'
@@ -105,7 +105,7 @@ EOI
EOO
$* <<EOI 2>>EOE != 0 # multi-unterm
-#\\
+#\
comment
EOI
stdin:3:1: error: unterminated multi-line comment
diff --git a/unit-tests/lexer/quoting.test b/unit-tests/lexer/quoting.test
index 76fd904..aab02c3 100644
--- a/unit-tests/lexer/quoting.test
+++ b/unit-tests/lexer/quoting.test
@@ -48,7 +48,7 @@ EOO
:
$* <'"$foo"' >>EOO
'' [D/P]
-\$
+$
'foo' [D/P]
<newline>
EOO
@@ -58,7 +58,7 @@ EOO
:
$* <'"foo$"' >>EOO
'foo' [D/P]
-\$
+$
'' [D/P]
<newline>
EOO