From 6caa05788b7dd7f59d863e9774b7f61d534cd1fc Mon Sep 17 00:00:00 2001 From: elioat Date: Sun, 9 Jun 2024 17:21:31 -0400 Subject: * --- lua/chupacabra/chupacabra.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lua/chupacabra/chupacabra.lua') diff --git a/lua/chupacabra/chupacabra.lua b/lua/chupacabra/chupacabra.lua index aedd71e..e64afc3 100644 --- a/lua/chupacabra/chupacabra.lua +++ b/lua/chupacabra/chupacabra.lua @@ -55,6 +55,11 @@ function chupacabra.evaluate(tokens, context) table.remove(stack) elseif token == ":" then table.insert(stack, stack[#stack]) + elseif token == "?" then + local a = table.remove(stack) + local b = table.remove(stack) + table.insert(stack, a) + table.insert(stack, b) elseif token == "@" then local index = table.remove(stack) local array = table.remove(stack) -- cgit 1.4.1-2-gfad0