summary refs log tree commit diff stats
path: root/parser.lua
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2019-04-06 13:32:37 -0300
committerSoniEx2 <endermoneymod@gmail.com>2019-04-06 13:32:37 -0300
commit1f1f6c0732ddb22c7d102a810b6c24724a5b6d3b (patch)
treea83cefd7cb2c3bc8401d23a2cc667f3be069765b /parser.lua
parenta6372171c08b21adfc1c9879bd195fcd6a658d18 (diff)
it works?
Diffstat (limited to 'parser.lua')
-rw-r--r--parser.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.lua b/parser.lua
index ff8378c..beb944e 100644
--- a/parser.lua
+++ b/parser.lua
@@ -134,8 +134,8 @@ return {
     stream = stream,
     parse = parse,
     -- common utility function
-    selfify = function(t)
-        t.self = t
+    selfify = function(t, id)
+        t[id or "self"] = t
         return t
     end,
     -- common hook