From e50dd885c22ed3b00b34336ea8d791068be425c4 Mon Sep 17 00:00:00 2001 From: Henri DF Date: Sun, 21 Feb 2016 13:40:34 -0800 Subject: [PATCH] Remove cruft from lua/rule_loader.lua --- lua/rule_loader.lua | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lua/rule_loader.lua b/lua/rule_loader.lua index 59402c4d..999823cb 100644 --- a/lua/rule_loader.lua +++ b/lua/rule_loader.lua @@ -31,22 +31,10 @@ local function install_filter(node) filter.rel_expr(node.left.value, node.operator, node.right.value) -- io.write(node.left.value.." "..node.operator.." "..node.right.value) - -- xxx still need to handle case where node.right.type=="list" - elseif t == "UnaryRelOp" then filter.rel_expr(node.argument.value, node.operator) --io.write(node.argument.value.." "..node.operator) - elseif t == "List" then - error("Not handling List yet") - - elseif t == "FieldName" or t == "Number" or t == "String" or t == "BareString" or t == "Macro" then - error ("Unexpected type: "..t) - - io.write(t.." "..node.value) - - elseif t == "MacroDef" then - error ("Unexpected type: "..t) else error ("Unexpected type: "..t) end