From: Vsevolod Stakhov Date: Tue, 21 Aug 2018 18:04:22 +0000 (+0100) Subject: [Minor] Allow semicolon separated selectors X-Git-Tag: 1.8.0~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=124cebf7a0920ed3c74de9ace8ef3ae9cc2b777e;p=thirdparty%2Frspamd.git [Minor] Allow semicolon separated selectors --- diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua index 3efdfe1236..3cf9a13403 100644 --- a/lualib/lua_selectors.lua +++ b/lualib/lua_selectors.lua @@ -462,11 +462,11 @@ local function make_grammar() local obrace = "(" * spc local ebrace = spc * ")" local comma = spc * "," * spc - local colon = ":" + local sel_separator = l.S":;" return l.P{ "LIST"; - LIST = l.Ct(l.V("EXPR")) * (colon * l.Ct(l.V("EXPR")))^0, + LIST = l.Ct(l.V("EXPR")) * (sel_separator * l.Ct(l.V("EXPR")))^0, EXPR = l.V("FUNCTION") * (dot * l.V("PROCESSOR"))^0, PROCESSOR = l.Ct(atom * spc * (obrace * l.V("ARG_LIST") * ebrace)^0), FUNCTION = l.Ct(atom * spc * (obrace * l.V("ARG_LIST") * ebrace)^0),