about summary refs log tree commit diff stats
path: root/lua/chupacabra/chupacabra.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/chupacabra/chupacabra.lua')
-rw-r--r--lua/chupacabra/chupacabra.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/chupacabra/chupacabra.lua b/lua/chupacabra/chupacabra.lua
index 4296e19..aedd71e 100644
--- a/lua/chupacabra/chupacabra.lua
+++ b/lua/chupacabra/chupacabra.lua
@@ -53,6 +53,8 @@ function chupacabra.evaluate(tokens, context)
             table.insert(stack, result)    
         elseif token == "." then
             table.remove(stack)
+        elseif token == ":" then 
+            table.insert(stack, stack[#stack])
         elseif token == "@" then
             local index = table.remove(stack)
             local array = table.remove(stack)