From b54829de363f67a8a6f6131ceb0eb27aa09d4292 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 27 Apr 2018 16:45:11 -0700 Subject: Better text interpolation/handling of "\". Also added syntax support for (statement; statement) --- tests/text.nom | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'tests') diff --git a/tests/text.nom b/tests/text.nom index 004a630..72eebac 100644 --- a/tests/text.nom +++ b/tests/text.nom @@ -22,3 +22,34 @@ immediately "\(%)世界" assume ((%こんにちは と言う) = "こんにちは世界") or barf "Unicode doesn't work" + +%s <- ".." + one two\nthree\ + ..four +assume (%s = "one two\\nthreefour") +%s <- ".." + list:\[..] + 1,2,3 + .. +assume (%s = "list:{1, 2, 3}") + +assume + ".." + foo = \ + 1 + 2 + ..! + ..= "foo = 3!" + +assume + ".." + one\"\n"two + ..= "one\ntwo" + +assume + ".." + no\ # Comment + #comment + #.. + block comment + ..gap + ..= "nogap" -- cgit v1.2.3