When you extract ddl from materialized view, there is no ddl separator included. When you extracting one mv , there is no problem, but try extract more objects including MV into one script, then separator should be placed at the end. DDl’s from other objects have separator included.
Ps. Separator in preferences is set to default “/”