aboutsummaryrefslogtreecommitdiff
path: root/parser.lua
diff options
context:
space:
mode:
Diffstat (limited to 'parser.lua')
-rw-r--r--parser.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/parser.lua b/parser.lua
index 5f766b9..979a29f 100644
--- a/parser.lua
+++ b/parser.lua
@@ -193,8 +193,7 @@ Parser.parse = function(nomsu_code, source)
local userdata = {
indent = "",
errors = { },
- source = source,
- comments = { }
+ source = source
}
local tree = NOMSU_PATTERN:match(nomsu_code, nil, userdata)
if not (tree) then
@@ -228,7 +227,6 @@ Parser.parse = function(nomsu_code, source)
end
error("Errors occurred while parsing:\n\n" .. table.concat(errors, "\n\n"), 0)
end
- tree.comments = userdata.comments
tree.version = userdata.version
return tree
end