From 124cebf7a0920ed3c74de9ace8ef3ae9cc2b777e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 21 Aug 2018 19:04:22 +0100 Subject: [PATCH] [Minor] Allow semicolon separated selectors --- lualib/lua_selectors.lua | 4 ++-- 1 file 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), -- 2.39.5