aboutsummaryrefslogtreecommitdiff
path: root/parser.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-27 10:22:58 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-27 10:23:02 -0700
commit09d6bad6ac0d4509552d424471bcace649f69c8e (patch)
tree90b7ee5d2714deeee0c769de8ecde810e6bbb229 /parser.lua
parent65dc1f2196b46dbd527d49da113515bea825416d (diff)
Minor fixes.
Diffstat (limited to 'parser.lua')
-rw-r--r--parser.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/parser.lua b/parser.lua
index f856c88..f4ce450 100644
--- a/parser.lua
+++ b/parser.lua
@@ -153,6 +153,7 @@ Parser.parse = function(nomsu_code, source)
if source == nil then
source = nil
end
+ source = source or nomsu_code.source
nomsu_code = tostring(nomsu_code)
local userdata = {
indent = "",