[deft-new] Generate matching 'end library/module foo'.