mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-22 12:27:10 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user