aboutsummaryrefslogtreecommitdiff
path: root/lib/core/metaprogramming.nom
diff options
context:
space:
mode:
Diffstat (limited to 'lib/core/metaprogramming.nom')
-rw-r--r--lib/core/metaprogramming.nom3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/core/metaprogramming.nom b/lib/core/metaprogramming.nom
index bd0b6d7..a9649c6 100644
--- a/lib/core/metaprogramming.nom
+++ b/lib/core/metaprogramming.nom
@@ -248,6 +248,7 @@ test:
with external [$x]:
$x = "inner"
$y = "inner"
+
set external x local y
unless (($x == "inner") and ($y == "outer")):
fail "'with external' failed."
@@ -516,4 +517,4 @@ test:
($tree with $t -> $replacement) parses as ($tree, with ($t -> $replacement))
[tree $tree with vars $replacements, $tree with vars $replacements] all parse as
$tree, with $replacements
-($tree has subtree $match_tree) parses as ($tree, contains $match_tree)
+($tree has subtree $match_tree) parses as ($tree, contains $match_tree) \ No newline at end of file