mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
![]() Python, Ruby, Javascript, Go, ..., allow use of trailing commas and is even recommended in some style-guides as it keeps diffs smaller. The black formatter for Python even goes as far to take a trailing comma as an indication to format a list one-item on a line. It has been a bit unusual to not be able to put trailing commas in Zeek scripts, so this change allows for it. It explicitly prevents trailing commas in list expressions on the left hand side. Concretely, this disallows trailing commas in the key list expression during table initializations. It probably allows for commas in more places that I haven't fully grasped. Maybe we should tighten those down again if we find them surprising. |
||
---|---|---|
.. | ||
.stderr | ||
out |