mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-03 09:56:45 +00:00
Grammar: fix commas in lists
commas were (unintentionally) optional in lists. so a list like (a b c) was a valid three-element list.
This commit is contained in:
parent
b46e996ea1
commit
733548b80b
@ -99,7 +99,7 @@ end
|
||||
|
||||
|
||||
local function list (pat, sep)
|
||||
return Ct(pat^0 * (sep * pat^0)^0) / function(elements) return {type = "List", elements=elements} end
|
||||
return Ct(pat^-1 * (sep * pat^0)^0) / function(elements) return {type = "List", elements=elements} end
|
||||
end
|
||||
|
||||
--http://lua-users.org/wiki/StringTrim
|
||||
|
Loading…
Reference in New Issue
Block a user