aboutsummaryrefslogtreecommitdiff
path: root/nomsu.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-17 14:12:11 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-17 14:12:51 -0700
commit0442c8dd216f16c7371873a8e8fd8bf83d30dad0 (patch)
treef3ca5f178b9851d27d95bf060f966e2398ef9a6a /nomsu.lua
parentbe06fc096aa28358914bd6a76b4ea380a04b8873 (diff)
Overhaul of comment handling, plus a few fixes (e.g. a fix for indented
text that begins with a nomsu comment)
Diffstat (limited to 'nomsu.lua')
-rw-r--r--nomsu.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/nomsu.lua b/nomsu.lua
index 6080637..0f22eff 100644
--- a/nomsu.lua
+++ b/nomsu.lua
@@ -271,10 +271,11 @@ run = function()
end
end
if #file_queue == 0 then
- nomsu:run([[use "core"
+ nomsu:run([[#!/usr/bin/env nomsu -V2
+use "core"
use "lib/consolecolor.nom"
action [quit, exit]: lua> "os.exit(0)"
-action [help]
+action [help]:
say ".."
This is the Nomsu v\(Nomsu version) interactive console.
You can type in Nomsu code here and hit 'enter' twice to run it.