summary refs log tree commit diff stats
path: root/parser.lua
diff options
context:
space:
mode:
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