aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_selectors.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-21 19:04:22 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-21 19:04:22 +0100
commit124cebf7a0920ed3c74de9ace8ef3ae9cc2b777e (patch)
treea16441e3c08740a322111d9f19c2d9f31bf124eb /lualib/lua_selectors.lua
parent0acba683d88afbb8f47f0782d9a3493a599a21ce (diff)
downloadrspamd-124cebf7a0920ed3c74de9ace8ef3ae9cc2b777e.tar.gz
rspamd-124cebf7a0920ed3c74de9ace8ef3ae9cc2b777e.zip
[Minor] Allow semicolon separated selectors
Diffstat (limited to 'lualib/lua_selectors.lua')
-rw-r--r--lualib/lua_selectors.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_selectors.lua b/lualib/lua_selectors.lua
index 3efdfe123..3cf9a1340 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),