aboutsummaryrefslogtreecommitdiff
path: root/examples/sample_game.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-14 00:09:54 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-14 00:09:54 -0700
commit0f228d2d25f292b7d841c84cfa8b8f02229c993a (patch)
tree9aa4b94eeb8497e2ded9fbc3723e5f94a21bdd5d /examples/sample_game.nom
parent6b5fbd436bb5caf99b152dfa418317dfc1fca272 (diff)
Changed comments to use # and #.. instead of (# #), which is more
consistent with the language's attitude towards code blocks and indentation. No more long-range action closing parens.
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"