aboutsummaryrefslogtreecommitdiff
path: root/tests/text.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-04-27 16:45:11 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-04-27 16:45:35 -0700
commitb54829de363f67a8a6f6131ceb0eb27aa09d4292 (patch)
treec03e3a7ad9a5cd58d0055b262e0ddf1bca89ba97 /tests/text.nom
parent6fecb5d3950949d3bcf232f74283229248c21247 (diff)
Better text interpolation/handling of "\". Also added syntax support for
(statement; statement)
Diffstat (limited to 'tests/text.nom')
-rw-r--r--tests/text.nom31
1 files changed, 31 insertions, 0 deletions
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"