Add `flatten-all-begins` to syntax/flatten-begin
Add doc examples for `flatten-begin`