diff options
Diffstat (limited to 'lua/chupacabra/chupacabra.lua')
-rw-r--r-- | lua/chupacabra/chupacabra.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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) |