aboutsummaryrefslogtreecommitdiff
path: root/lib/tools/repl.nom
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tools/repl.nom')
-rwxr-xr-xlib/tools/repl.nom7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tools/repl.nom b/lib/tools/repl.nom
index 029df4a..5e8336f 100755
--- a/lib/tools/repl.nom
+++ b/lib/tools/repl.nom
@@ -70,6 +70,13 @@ command line program with $args:
unless $tree:
do next
+ if ($tree.type == "Comment"):
+ say (dim "Comment:\($tree.1)")
+ do next
+
+ if ($tree.type != "FileChunks"):
+ $tree = [$tree]
+
for $chunk in $tree:
try:
$lua = ($chunk as lua)