aboutsummaryrefslogtreecommitdiff
path: root/examples/parser_tests.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-14 04:31:46 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-14 04:31:46 -0700
commit27f89faaee6f318edcf4a19b95f01b523d84fe09 (patch)
tree020b5ef779080d76ccb48e558558734067f425e5 /examples/parser_tests.nom
parent02cda763c58e988301fe7819c9a12d9268e702c7 (diff)
Tweaked apostrophe rules to make %x's %y work.
Diffstat (limited to 'examples/parser_tests.nom')
-rw-r--r--examples/parser_tests.nom8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/parser_tests.nom b/examples/parser_tests.nom
index 4f8af85..d506d2a 100644
--- a/examples/parser_tests.nom
+++ b/examples/parser_tests.nom
@@ -192,6 +192,12 @@ test:
test:
don't fuck this up
..yields ".."
- |Call [don't fuck this up]!
+ |Call [don 't fuck this up]!
+
+test:
+ %Brian's hat
+..yields ".."
+ |Call [% 's hat]:
+ | Var[Brian]
say "All tests passed!"