about summary refs log tree commit diff stats
path: root/lua/chupacabra/chupacabra.lua
diff options
context:
space:
mode:
authorelioat <hi@eli.li>2024-06-09 15:45:58 -0400
committerelioat <hi@eli.li>2024-06-09 15:45:58 -0400
commit01327556ef6cb529e99cd56f8bc4d8947d2a622f (patch)
treec9bdabdfcb6912867f708f89b876b48923fce64a /lua/chupacabra/chupacabra.lua
parent79fcbb5f40e91fc74d4d7b1491b8e246ec6a42b5 (diff)
downloadtour-01327556ef6cb529e99cd56f8bc4d8947d2a622f.tar.gz
*
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)