mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
Merge pull request #143 from cahna/version-fix
convert moonscript.version to moonscript
This commit is contained in:
commit
369c43caa3
@ -1,9 +1,7 @@
|
|||||||
|
|
||||||
local version = "0.2.5"
|
local version = "0.2.5"
|
||||||
|
|
||||||
return {
|
return {
|
||||||
version = version,
|
version = version,
|
||||||
print_version = function()
|
print_version = function()
|
||||||
print("MoonScript version "..version)
|
return print("MoonScript version " .. tostring(version))
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
8
moonscript/version.moon
Normal file
8
moonscript/version.moon
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
version = "0.2.5"
|
||||||
|
|
||||||
|
{
|
||||||
|
version: version,
|
||||||
|
print_version: ->
|
||||||
|
print "MoonScript version #{version}"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user