From a61871cccb5a86c4e9ad264c045b4403abc2b183 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 5 Oct 2020 12:18:36 +0100 Subject: [PATCH] [Rework] Neural: Skip composite symbols --- src/lua/lua_config.c | 4 ++++ src/plugins/lua/neural.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 06a2f57b6..38c15bbe1 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1921,6 +1921,10 @@ lua_push_symbol_flags (lua_State *L, guint flags, enum lua_push_symbol_flags_opt if (flags & SYMBOL_TYPE_SKIPPED) { LUA_OPTION_PUSH (skip); } + + if (flags & SYMBOL_TYPE_COMPOSITE) { + LUA_OPTION_PUSH (composite); + } } static gint diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua index 124877927..05244e9c6 100644 --- a/src/plugins/lua/neural.lua +++ b/src/plugins/lua/neural.lua @@ -1436,7 +1436,7 @@ local function process_rules_settings() if fl then fl = lua_util.list_to_hash(fl) - return not (fl.nostat or fl.idempotent or fl.skip) + return not (fl.nostat or fl.idempotent or fl.skip or fl.composite) end return false -- 2.39.5