Only the right-most list-or-variable can be omitted.
This is a weird way to characterize that the grammar permits a trailing comma. I don't think of
list($x, $y,)
as having omitted a variable after the comma, but rather, having added an unnecessary comma. Characterizing this as an "omission" implies that something ought to be there.
I would remove the sentence entirely and enforce the rule in the grammar:
The grammar says
And then goes on to say
This is a weird way to characterize that the grammar permits a trailing comma. I don't think of
as having omitted a variable after the comma, but rather, having added an unnecessary comma. Characterizing this as an "omission" implies that something ought to be there.
I would remove the sentence entirely and enforce the rule in the grammar:
Now there is no need for the supporting text, and the only things that can be "omitted" are (1) the entire list, or (2) the trailing comma.