diff --git a/moonscript/version.lua b/moonscript/version.lua index bbbf0a8..8dda91c 100644 --- a/moonscript/version.lua +++ b/moonscript/version.lua @@ -1,9 +1,7 @@ - local version = "0.2.5" - return { version = version, print_version = function() - print("MoonScript version "..version) + return print("MoonScript version " .. tostring(version)) end } diff --git a/moonscript/version.moon b/moonscript/version.moon new file mode 100644 index 0000000..bf801c3 --- /dev/null +++ b/moonscript/version.moon @@ -0,0 +1,8 @@ + +version = "0.2.5" + +{ + version: version, + print_version: -> + print "MoonScript version #{version}" +}