From 570614482f8741190a4100d9b3960818367d10f8 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Tue, 15 Jul 2014 20:34:58 -0400 Subject: [PATCH] Fix precedence of "not" to be above "and/or" but below comparisons. This fixes ticket 384 by @Draugrs, where expressions like: not IcyVeinsCooldownRemains() > 0 was being parsed as: (not IcyVeinsCooldownRemains()) > 0 instead of: not (IcyVeinsCooldownRemains() > 0) --- OvaleAST.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvaleAST.lua b/OvaleAST.lua index 4d9f0e4..1019997 100644 --- a/OvaleAST.lua +++ b/OvaleAST.lua @@ -158,7 +158,7 @@ local STRING_LOOKUP_FUNCTION = { -- Unary and binary operators with precedence. local UNARY_OPERATOR = { - ["not"] = { "logical", 50 }, + ["not"] = { "logical", 15 }, ["-"] = { "arithmetic", 50 }, } local BINARY_OPERATOR = { -- 1.7.9.5