aboutsummaryrefslogtreecommitdiff
path: root/examples/sample_game.nom
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sample_game.nom')
-rw-r--r--examples/sample_game.nom14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/sample_game.nom b/examples/sample_game.nom
index 010e610..8ac7e7a 100644
--- a/examples/sample_game.nom
+++ b/examples/sample_game.nom
@@ -31,13 +31,13 @@ rule "you":
lua expr "(you or 'Anonymous')"
rule ["make %person %action", "make %person do %action"]:
- lua block [..]
- "do"
- "\n local old_you = you"
- "\n you = vars.person"
- "\n ret = compiler:call('do %', vars.action)"
- "\n you = old_you"
- "\nend"
+ lua block ".."
+ |do
+ | local old_you = you
+ | you = vars.person
+ | ret = compiler:call('do %', vars.action)
+ | you = old_you
+ |end
say "===================================================="
say " NEW GAME"