From 0f228d2d25f292b7d841c84cfa8b8f02229c993a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 14 Sep 2017 00:09:54 -0700 Subject: 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. --- examples/sample_game.nom | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples/sample_game.nom') 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" -- cgit v1.2.3